Skip to content

Commit 8d9567c

Browse files
committed
Maybe toContain gives us more useful info
1 parent b6e954c commit 8d9567c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev-packages/bundler-tests/tests/bundling.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ describe('spotlight', () => {
133133
for (const [name, bundler] of cases) {
134134
test(`${name} development bundle contains spotlight`, async () => {
135135
const code = await bundler('development');
136-
expect(code).includes(SPOTLIGHT_URL);
136+
expect(code).toContain(SPOTLIGHT_URL);
137137
});
138138

139139
test(`${name} production bundle does not contain spotlight`, async () => {
140140
const code = await bundler('production');
141-
expect(code).not.includes(SPOTLIGHT_URL);
141+
expect(code).not.toContain(SPOTLIGHT_URL);
142142
});
143143
}
144144
});

0 commit comments

Comments
 (0)