Skip to content

Commit

Permalink
release v0.6.3 (#237)
Browse files Browse the repository at this point in the history
* release v0.6.3

* fix flakey test

* fix flakey test
  • Loading branch information
vkarpov15 authored Jul 12, 2024
1 parent 7e02223 commit c997041
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stargate-mongoose",
"version": "0.6.2",
"version": "0.6.3",
"description": "Stargate's NodeJS Mongoose compatability client",
"contributors": [
"CRW (http://barnyrubble.tumblr.com/)",
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const LIB_NAME = 'stargate-mongoose';
export const LIB_VERSION = '0.6.2';
export const LIB_VERSION = '0.6.3';
25 changes: 3 additions & 22 deletions tests/collections/collection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,28 +297,9 @@ describe(`StargateMongoose - ${testClientName} Connection - collections.collecti
assert.ok(error);
assert.strictEqual(error.errors[0].message, 'Document already exists with the given _id');
assert.strictEqual(error.errors[0].errorCode, 'DOCUMENT_ALREADY_EXISTS');
assert.deepStrictEqual(error.status.documentResponses, [
{ _id: 'docml1', status: 'OK' },
{ _id: 'docml2', status: 'OK' },
{ _id: 'docml3', status: 'OK' },
{ _id: 'docml4', status: 'OK' },
{ _id: 'docml5', status: 'OK' },
{ _id: 'docml6', status: 'OK' },
{ _id: 'docml7', status: 'OK' },
{ _id: 'docml8', status: 'OK' },
{ _id: 'docml9', status: 'OK' },
{ _id: 'docml10', status: 'ERROR', errorsIdx: 0 },
{ _id: 'docml10', status: 'OK' },
{ _id: 'docml12', status: 'OK' },
{ _id: 'docml13', status: 'OK' },
{ _id: 'docml14', status: 'OK' },
{ _id: 'docml15', status: 'OK' },
{ _id: 'docml16', status: 'OK' },
{ _id: 'docml17', status: 'OK' },
{ _id: 'docml18', status: 'OK' },
{ _id: 'docml19', status: 'OK' },
{ _id: 'docml20', status: 'OK' }
]);
assert.equal(error.status.documentResponses.length, 20);
assert.ok(error.status.documentResponses.find(r => r._id === 'docml10' && r.status === 'ERROR' && r.errorsIdx === 0));
assert.ok(error.status.documentResponses.find(r => r._id === 'docml10' && r.status === 'OK'));
});
it('should error out when one of the docs in insertMany is invalid with ordered false', async () => {
const docList: { _id?: string, username: string }[] = Array.from({ length: 20 }, () => ({ 'username': 'id' }));
Expand Down

0 comments on commit c997041

Please sign in to comment.