Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DomPeliniAerospike committed Oct 21, 2024
1 parent e6bdca4 commit ab6a192
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"apidocs": "jsdoc -c jsdoc.json",
"build-docs": "npx typedoc --plugin typedoc-plugin-rename-defaults --entryPointStrategy expand typings/index.d.ts",
"cppcheck": "cppcheck --quiet --enable=warning,style -I src/include src/main/",
"valgrind": "valgrind node ./node_modules/mocha/bin/_mocha -R dot -g '#slow' -i ts-test",
"valgrind": "valgrind node ./node_modules/mocha/bin/_mocha -R dot -g '#slow' -i ./ts-test",
"prepare": "husky install",
"removeExtraBinaries": "node ./scripts/prebuiltBinding.js"
},
Expand Down
4 changes: 2 additions & 2 deletions test/exp.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,13 @@ describe('Aerospike.exp', function () {
it('evaluates to true if any expression evaluates to true', async function () {
const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
await testNoMatch(key, exp.eq(exp.recordSize(), exp.int(1)))
await testMatch(key, exp.eq(exp.recordSize(), exp.int(96)))
await testMatch(key, exp.gt(exp.recordSize(), exp.int(64)))
})

it('evaluates to true if any expression evaluates to true', async function () {
const key = await createRecord({ tags: { a: '123456789', b: 'green', c: 'yellow' } })
await testNoMatch(key, exp.eq(exp.recordSize(), exp.int(1)))
await testMatch(key, exp.eq(exp.recordSize(), exp.int(112)))
await testMatch(key, exp.gt(exp.recordSize(), exp.int(64)))
})
})

Expand Down

0 comments on commit ab6a192

Please sign in to comment.