Skip to content

Commit

Permalink
fix mistaken expect in user.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcxa committed Aug 16, 2018
1 parent ed61be3 commit dedf06a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/unit/models/user.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,9 @@ describe(`models/${modelName}`, () => {
expect(userWithPassport.nickName).to.be.equal(fakeData.create.nickName);
expect(userWithPassport.email).to.be.equal(fakeData.create.email);
expect(userWithPassport.Passports.length).to.equal(1);
expect(userWithPassport.Passports[0].amount).to.equal(data.name);
expect(userWithPassport.Passports[0].remark).to.equal(data.price);
expect(userWithPassport.Passports[0].token).to.equal(data.token);
expect(userWithPassport.Passports[0].workspaceName).to.equal(data.workspaceName);
expect(userWithPassport.Passports[0].passwordHash).to.equal(data.passwordHash);
});
});
});

0 comments on commit dedf06a

Please sign in to comment.