Socket
Socket
Sign inDemoInstall

@feathersjs/adapter-tests

Package Overview
Dependencies
Maintainers
4
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/adapter-tests - npm Package Compare versions

Comparing version 5.0.0-beta.0 to 5.0.0-beta.1

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [5.0.0-beta.1](https://github.com/feathersjs/databases/compare/v5.0.0-beta.0...v5.0.0-beta.1) (2021-04-03)
### Bug Fixes
* **adapter-tests:** Add test that verified paginated total ([#2273](https://github.com/feathersjs/databases/issues/2273)) ([879bd6b](https://github.com/feathersjs/databases/commit/879bd6b24f42e04eeeeba110ddddda3e1e1dea34))
# [5.0.0-beta.0](https://github.com/feathersjs/databases/compare/v5.0.0-pre.1...v5.0.0-beta.0) (2021-03-28)

@@ -8,0 +19,0 @@

@@ -268,2 +268,14 @@ "use strict";

}));
test('.find + paginate + query', () => __awaiter(this, void 0, void 0, function* () {
const page = yield service.find({
query: {
$sort: { name: -1 },
name: 'Doug'
}
});
assert_1.default.strictEqual(page.total, 1);
assert_1.default.strictEqual(page.limit, 1);
assert_1.default.strictEqual(page.skip, 0);
assert_1.default.strictEqual(page.data[0].name, 'Doug');
}));
test('.find + paginate + $limit + $skip', () => __awaiter(this, void 0, void 0, function* () {

@@ -270,0 +282,0 @@ const params = {

7

package.json
{
"name": "@feathersjs/adapter-tests",
"version": "5.0.0-beta.0",
"version": "5.0.0-beta.1",
"description": "Feathers shared database adapter test suite",

@@ -34,3 +34,4 @@ "homepage": "https://feathersjs.com",

"compile": "shx rm -rf lib/ && tsc",
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
"mocha": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts",
"test": "npm run compile && npm run mocha"
},

@@ -57,3 +58,3 @@ "directories": {

},
"gitHead": "3b953f85cc1c2184a032bebac302f8de8a2f0d4d"
"gitHead": "dc420e5bdc2670184b63cb9bafc9cc9f794a47f5"
}

@@ -19,4 +19,4 @@ # Feathers Adapter Tests

Copyright (c) 2019 Feathers contributors
Copyright (c) 2021 [Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors)
Licensed under the [MIT license](LICENSE).

@@ -302,2 +302,16 @@ import assert from 'assert';

test('.find + paginate + query', async () => {
const page = await service.find({
query: {
$sort: { name: -1 },
name: 'Doug'
}
});
assert.strictEqual(page.total, 1);
assert.strictEqual(page.limit, 1);
assert.strictEqual(page.skip, 0);
assert.strictEqual(page.data[0].name, 'Doug');
});
test('.find + paginate + $limit + $skip', async () => {

@@ -304,0 +318,0 @@ const params = {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc