Skip to content

Commit

Permalink
fixing an expectation string and wrong expectation for deltaset test
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Hristov committed May 18, 2018
1 parent c679407 commit 45cf5a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
10 changes: 2 additions & 8 deletions test/integration/tests/delta-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ function testFunc() {
.catch(done);
});

<<<<<<< HEAD
it('should return correct number of items with auto-pagination and skip and limit', (done) => {
const query = new Kinvey.Query();
query.skip = 1;
Expand All @@ -139,13 +138,11 @@ function testFunc() {
.then((result) => validatePullOperation(result, [entity1, entity2]))
.then(() => deltaNetworkStore.save(entity3))
.then(() => deltaStoreToTest.pull(query, { autoPagination: true }))
.then((result) => validateNewPullOperation(result, [entity3], []))
.then((result) => validateNewPullOperation(result, [entity1, entity2, entity3], []))
.then(() => done())
.catch(done);
});

=======
>>>>>>> 24e4eef93ccf9678d2cb88d4e040db4c146ebc77
it('should return correct number of items with tagged dataStore', (done) => {
const onNextSpy = sinon.spy();
syncStore.save(entity1)
Expand Down Expand Up @@ -411,7 +408,6 @@ function testFunc() {
.catch(done);
});

<<<<<<< HEAD
it('should return correct number of items with auto-pagination and skip and limit', (done) => {
const query = new Kinvey.Query();
query.skip = 1;
Expand All @@ -420,14 +416,12 @@ function testFunc() {
.then((result) => validatePullOperation(result.pull, [entity1, entity2]))
.then(() => deltaNetworkStore.save(entity3))
.then(() => deltaStoreToTest.sync(query, { autoPagination: true }))
.then((result) => validateNewPullOperation(result.pull, [entity3], []))
.then((result) => validateNewPullOperation(result.pull, [entity1, entity2, entity3], []))
.then(() => done())
.catch(done);
});


=======
>>>>>>> 24e4eef93ccf9678d2cb88d4e040db4c146ebc77
it('should return correct number of items with tagged dataStore', (done) => {
const onNextSpy = sinon.spy();
syncStore.save(entity1)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/tests/files-common.tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function testFunc() {

const notFoundErrorName = 'NotFoundError';
const notFoundErrorMessage = 'This blob not found for this app backend';
const notFoundErrorMessage = 'This blob not found for this app backend.';
const timeoutErrorName = 'TimeoutError';
const timeoutErrorMessage = 'The network request timed out.';
const plainTextMimeType = 'text/plain';
Expand Down
4 changes: 2 additions & 2 deletions test/integration/tests/users/users.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function testFunc() {
});
};

describe('User tests', () => {
describe.only('User tests', () => {
const missingCredentialsError = 'Username and/or password missing';
const createdUserIds = [];

Expand Down Expand Up @@ -446,7 +446,7 @@ function testFunc() {
it('should return the error from the server if the id does not exist', (done) => {
Kinvey.User.remove(utilities.randomString())
.catch((error) => {
expect(error.message).to.equal('This user does not exist for this app backend');
expect(error.message).to.equal('This user does not exist for this app backend.');
done();
})
.catch(done);
Expand Down

0 comments on commit 45cf5a3

Please sign in to comment.