diff --git a/package-lock.json b/package-lock.json index 73b487b5a..1da9eb020 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "rdme", - "version": "3.7.1", + "version": "3.7.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -232,16 +232,6 @@ "regenerator-runtime": "^0.13.2" } }, - "@babel/runtime-corejs3": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.8.4.tgz", - "integrity": "sha512-+wpLqy5+fbQhvbllvlJEVRIpYj+COUWnnsm+I4jZlA8Lo7/MJmBhGTCHyk1/RWfOqBRJ2MbadddG6QltTKTlrg==", - "dev": true, - "requires": { - "core-js-pure": "^3.0.0", - "regenerator-runtime": "^0.13.2" - } - }, "@babel/template": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.3.tgz", @@ -893,9 +883,9 @@ } }, "@readme/eslint-config": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@readme/eslint-config/-/eslint-config-1.11.0.tgz", - "integrity": "sha512-9DwT7rfhvKvgbGkC3vzFvmVwFHCPCmzKdMKzlFg5K9JxjPr8azpocgQzgq6/X+R9SFYBd5/G1BpoyjofdTIvZQ==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/@readme/eslint-config/-/eslint-config-1.12.0.tgz", + "integrity": "sha512-52m/b1pf6LGWd21x65FPvYxNV9jMJaWwMLZyRKX7F640jFMFNJsheLk8T/1PTRjZJAKYMBFQYpZcl9OgxblNmg==", "dev": true, "requires": { "eslint-config-airbnb-base": "^14.0.0", @@ -909,7 +899,7 @@ "eslint-plugin-prettier": "^3.1.1", "eslint-plugin-react": "^7.17.0", "eslint-plugin-sonarjs": "^0.5.0", - "eslint-plugin-unicorn": "^15.0.0" + "eslint-plugin-unicorn": "^16.0.0" } }, "@sinonjs/commons": { @@ -1027,20 +1017,20 @@ "dev": true }, "@typescript-eslint/experimental-utils": { - "version": "2.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.18.0.tgz", - "integrity": "sha512-J6MopKPHuJYmQUkANLip7g9I82ZLe1naCbxZZW3O2sIxTiq/9YYoOELEKY7oPg0hJ0V/AQ225h2z0Yp+RRMXhw==", + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.19.0.tgz", + "integrity": "sha512-zwpg6zEOPbhB3+GaQfufzlMUOO6GXCNZq6skk+b2ZkZAIoBhVoanWK255BS1g5x9bMwHpLhX0Rpn5Fc3NdCZdg==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.18.0", + "@typescript-eslint/typescript-estree": "2.19.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/typescript-estree": { - "version": "2.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.18.0.tgz", - "integrity": "sha512-gVHylf7FDb8VSi2ypFuEL3hOtoC4HkZZ5dOjXvVjoyKdRrvXAOPSzpNRnKMfaUUEiSLP8UF9j9X9EDLxC0lfZg==", + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.19.0.tgz", + "integrity": "sha512-n6/Xa37k0jQdwpUszffi19AlNbVCR0sdvCs3DmSKMD7wBttKY31lhD2fug5kMD91B2qW4mQldaTEc1PEzvGu8w==", "dev": true, "requires": { "debug": "^4.1.1", @@ -1350,14 +1340,10 @@ "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" }, "axobject-query": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.1.1.tgz", - "integrity": "sha512-lF98xa/yvy6j3fBHAgQXIYl+J4eZadOSqsPojemUqClzNbBV38wWGpUbQbVEyf4eUF5yF7eHmGgGA2JiHyjeqw==", - "dev": true, - "requires": { - "@babel/runtime": "^7.7.4", - "@babel/runtime-corejs3": "^7.7.4" - } + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.1.2.tgz", + "integrity": "sha512-ICt34ZmrVt8UQnvPl6TVyDTkmhXmAyAT4Jh5ugfGUX4MOrZ+U/ZY6/sdylRw3qGNr9Ub5AJsaHeDMzNLehRdOQ==", + "dev": true }, "babel-jest": { "version": "25.1.0", @@ -2316,12 +2302,6 @@ "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", "dev": true }, - "core-js-pure": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.6.4.tgz", - "integrity": "sha512-epIhRLkXdgv32xIUFaaAry2wdxZYBi6bgM7cB136dzzXXa+dFyRLTZeLUJxnd8ShrmyVXBub63n2NHo2JAt8Cw==", - "dev": true - }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", @@ -3064,13 +3044,12 @@ } }, "eslint-plugin-jest": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-23.6.0.tgz", - "integrity": "sha512-GH8AhcFXspOLqak7fqnddLXEJsrFyvgO8Bm60SexvKSn1+3rWYESnCiWUOCUcBTprNSDSE4CtAZdM4EyV6gPPw==", + "version": "23.7.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-23.7.0.tgz", + "integrity": "sha512-zkiyGlvJeHNjAEz8FaIxTXNblJJ/zj3waNbYbgflK7K6uy0cpE5zJBt/JpJtOBGM/UGkC6BqsQ4n0y7kQ2HA8w==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "^2.5.0", - "micromatch": "^4.0.2" + "@typescript-eslint/experimental-utils": "^2.5.0" } }, "eslint-plugin-jest-formatting": { @@ -3186,9 +3165,9 @@ "dev": true }, "eslint-plugin-unicorn": { - "version": "15.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-15.0.1.tgz", - "integrity": "sha512-yahqrPGFUzwH5cnmnj+iPlgPapAiBIZ/ZNSDkhTVPgPCo7/mOEjJ2gDhEclrtQVBE9olmec4N+CKDnJuZ9XpRA==", + "version": "16.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-16.0.0.tgz", + "integrity": "sha512-zqWMYzTopdixyqu0+3td4vIGmpBxwdBVeWBm3TzwnFMvHoAE6tTQ/w2Xv5RG/MklKkfQdHsRqa8CVsSpjSA4qQ==", "dev": true, "requires": { "ci-info": "^2.0.0", @@ -3206,7 +3185,7 @@ "regexpp": "^3.0.0", "reserved-words": "^0.1.2", "safe-regex": "^2.1.1", - "semver": "^6.3.0" + "semver": "^7.1.2" }, "dependencies": { "find-up": { @@ -3329,12 +3308,6 @@ "requires": { "regexp-tree": "~0.1.1" } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true } } }, diff --git a/test/cmds/docs.test.js b/test/cmds/docs.test.js index 815bd7b87..4dc6bbfab 100644 --- a/test/cmds/docs.test.js +++ b/test/cmds/docs.test.js @@ -74,6 +74,7 @@ describe('rdme docs', () => { return docs.run({ folder: './test/fixtures/existing-docs', key, version }).then(() => { getMock.done(); putMock.done(); + expect(true).toBeTruthy(); }); }); @@ -134,6 +135,7 @@ describe('rdme docs', () => { return docs.run({ folder: './test/fixtures/new-docs', key, version }).then(() => { getMock.done(); postMock.done(); + expect(true).toBeTruthy(); }); }); }); diff --git a/test/cmds/swagger.test.js b/test/cmds/swagger.test.js index 0bc164f08..d28422a06 100644 --- a/test/cmds/swagger.test.js +++ b/test/cmds/swagger.test.js @@ -152,7 +152,10 @@ describe('rdme swagger', () => { .basicAuth({ user: key }) .reply(201, { _id: 1 }, { location: exampleRefLocation }); - return swagger.run({ spec: './test/fixtures/swagger.json', key }).then(() => mock.done()); + return swagger.run({ spec: './test/fixtures/swagger.json', key }).then(() => { + mock.done(); + expect(true).toBeTruthy(); + }); }); it('should PUT to the swagger api if id is provided', () => { @@ -163,7 +166,10 @@ describe('rdme swagger', () => { .basicAuth({ user: key }) .reply(201, { body: '{ id: 1 }' }); - return swagger.run({ spec: './test/fixtures/swagger.json', key, id, version }).then(() => mock.done()); + return swagger.run({ spec: './test/fixtures/swagger.json', key, id, version }).then(() => { + mock.done(); + expect(true).toBeTruthy(); + }); }); it('should still work with `token`', () => { diff --git a/test/cmds/versions.test.js b/test/cmds/versions.test.js index d0c387548..e627a276e 100644 --- a/test/cmds/versions.test.js +++ b/test/cmds/versions.test.js @@ -126,6 +126,7 @@ describe('rdme versions*', () => { return createVersion.run({ key, version }).then(() => { mockRequest.done(); + expect(true).toBeTruthy(); }); }); @@ -171,6 +172,7 @@ describe('rdme versions*', () => { return deleteVersion.run({ key, version }).then(() => { mockRequest.done(); + expect(true).toBeTruthy(); }); }); @@ -219,6 +221,7 @@ describe('rdme versions*', () => { return updateVersion.run({ key, version }).then(() => { mockRequest.done(); + expect(true).toBeTruthy(); }); });