From ebe3c5cc5cc05f227b40fead958e8e58fb09fd78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gra=C3=A7a?= Date: Sun, 9 Dec 2018 00:13:12 +0000 Subject: [PATCH] Reword some test cases --- test/integration/model.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/model.js b/test/integration/model.js index d5638ca4..945be48a 100644 --- a/test/integration/model.js +++ b/test/integration/model.js @@ -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); }); @@ -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}); @@ -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);