Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Commit c8107e3

Browse files
committed
improve test coverage using new shared test option in ldclient-node
1 parent 7fcfb1a commit c8107e3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"eslint-formatter-pretty": "1.3.0",
1919
"jest": "23.6.0",
2020
"jest-junit": "5.2.0",
21-
"ldclient-node": ">= 5.7.0",
21+
"ldclient-node": ">= 5.7.1",
2222
"node-cache": "^3.2.1",
2323
"typescript": "3.0.1"
2424
},

tests/consul_feature_store-test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ describe('ConsulFeatureStore', function() {
2020
return new ConsulFeatureStore({ cacheTTL: 0 });
2121
}
2222

23+
function makeStoreWithPrefix(prefix) {
24+
return new ConsulFeatureStore({ prefix: prefix, cacheTTL: 0 });
25+
}
26+
2327
function makeStoreWithHook(hook) {
2428
var store = makeStore();
2529
store.underlyingStore.testUpdateHook = hook;
@@ -31,7 +35,7 @@ describe('ConsulFeatureStore', function() {
3135
});
3236

3337
describe('uncached', function() {
34-
testBase.baseFeatureStoreTests(makeStoreWithoutCache, clearTable, false);
38+
testBase.baseFeatureStoreTests(makeStoreWithoutCache, clearTable, false, makeStoreWithPrefix);
3539
});
3640

3741
testBase.concurrentModificationTests(makeStore, makeStoreWithHook);

0 commit comments

Comments
 (0)