Personal Telegram developer console for GitHub

test: allow additional durable object bindings

davoodmehraban89 committed Oct 3, 2026 at 12:35 UTC fa773ae97c953a90abbe075c65b429fa5f72e2d0
1 file changed +3 -4
test/durable-replay.test.js
+3 -4
@@ -120,10 +120,9 @@ test('Worker exports ApprovalReplayGuard and Wrangler declares SQLite durable bi
120
121 const configText = await readFile(new URL('../wrangler.jsonc', import.meta.url), 'utf8');
122 const config = JSON.parse(configText);
123 - assert.deepEqual(config.durable_objects?.bindings, [{
124 - name: 'APPROVAL_REPLAY_GUARD',
125 - class_name: 'ApprovalReplayGuard'
126 - }]);
123 + assert.ok(config.durable_objects?.bindings?.some(binding =>
124 + binding.name === 'APPROVAL_REPLAY_GUARD' && binding.class_name === 'ApprovalReplayGuard'
125 + ));
126 assert.deepEqual(config.exports?.ApprovalReplayGuard, {
127 type: 'durable-object',
128 storage: 'sqlite'