Skip to content

Commit 3113762

Browse files
committed
fix tests
1 parent f0cfe33 commit 3113762

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/addons/vitest/src/node/test-manager.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ describe('TestManager', () => {
205205
triggeredBy: 'global',
206206
},
207207
});
208-
expect(setTestNamePattern).toHaveBeenCalledWith(new RegExp(`^One${DOUBLE_SPACES}$`));
208+
expect(setTestNamePattern).toHaveBeenCalledWith(new RegExp(`^One$`));
209209
expect(vitest.runTestSpecifications).toHaveBeenCalledWith(tests.slice(0, 1), true);
210210
});
211211

@@ -221,7 +221,7 @@ describe('TestManager', () => {
221221
},
222222
});
223223
// regex should be exact match of the story name
224-
expect(setTestNamePattern).toHaveBeenCalledWith(new RegExp(`^One${DOUBLE_SPACES}$`));
224+
expect(setTestNamePattern).toHaveBeenCalledWith(new RegExp(`^One$`));
225225
});
226226

227227
it('should trigger a single story test', async () => {

0 commit comments

Comments
 (0)