@feathersjs/adapter-tests
Advanced tools
Comparing version 5.0.0-beta.0 to 5.0.0-beta.1
@@ -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 = { |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114316
1774