Skip to content

Commit f8d9acd

Browse files
committed
test: assert warning includes plugin name
1 parent 80f67f2 commit f8d9acd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/openapi-ts/src/__tests__/index.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ describe('createClient', () => {
308308
expect(warnSpy).toHaveBeenCalledWith(
309309
expect.stringContaining('Duplicate plugin'),
310310
);
311+
expect(warnSpy).toHaveBeenCalledWith(
312+
expect.stringContaining('"@hey-api/typescript"'),
313+
);
311314

312315
warnSpy.mockRestore();
313316
});

0 commit comments

Comments
 (0)