We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4236798 commit 8ca405dCopy full SHA for 8ca405d
packages/compass-global-writes/src/store/index.spec.ts
@@ -320,6 +320,18 @@ describe('GlobalWritesStore Store', function () {
320
});
321
322
323
+ it('valid shard key -> failsOnShardZoneRequest', async function () {
324
+ const store = createStore({
325
+ isNamespaceManaged: () => true,
326
+ hasShardKey: () => true,
327
+ failsOnShardZoneRequest: () => true,
328
+ });
329
+ await waitFor(() => {
330
+ expect(store.getState().status).to.equal('SHARD_KEY_CORRECT');
331
+ expect(store.getState().managedNamespace).to.equal(managedNamespace);
332
333
334
+
335
it('valid shard key -> not managed', async function () {
336
// initial state === shard key correct
337
const store = createStore({
0 commit comments