Skip to content

Commit

Permalink
Reword some test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardograca committed Dec 9, 2018
1 parent 00b0f93 commit ebe3c5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/model.js
Expand Up @@ -1577,7 +1577,7 @@ module.exports = function(bookshelf) {
});

describe('#previousAttributes()', function() {
it("returns the current model's attributes if no attributes were changed after fetch", function() {
it("returns the model's current attributes if no attributes were changed after fetch", function() {
return new Models.Site({id: 1}).fetch().then(function(site) {
expect(site.previousAttributes()).to.eql(site.attributes);
});
Expand Down Expand Up @@ -1664,7 +1664,7 @@ module.exports = function(bookshelf) {
});
});

it("returns the current model's attributes after save without changes on the 'updated' event", function(done) {
it("returns the model's current attributes after save without changes on the 'updated' event", function(done) {
var originalAttributes;
var siteModel = new Models.Site({id: 1});

Expand Down Expand Up @@ -1722,7 +1722,7 @@ module.exports = function(bookshelf) {
expect(site.previousAttributes()).to.eql({});
});

it("returns the current model's attributes when the model is eager loaded without changes", function() {
it("returns the model's current attributes when the model is eager loaded without changes", function() {
return new Models.Author({id: 1}).fetch({withRelated: ['site']}).then(function(author) {
var site = author.related('site');
expect(site.previousAttributes()).to.eql(site.attributes);
Expand Down

0 comments on commit ebe3c5c

Please sign in to comment.