Skip to content

Commit d54d192

Browse files
committed
2 parents 7f4ecaa + 3de64f2 commit d54d192

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/integration/server.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ describe('FluxDocumentationServer Integration', () => {
101101
const response = await global.fetch('https://fluxui.dev/docs');
102102
const html = await response.text();
103103

104-
// Verify fixture contains expected links
105-
assert.ok(html.includes('https://fluxui.dev/components/button'));
106-
assert.ok(html.includes('https://fluxui.dev/components/input'));
107-
assert.ok(html.includes('https://fluxui.dev/components/modal'));
104+
// Verify fixture contains expected component links (check href attribute to avoid URL substring ambiguity)
105+
assert.ok(html.includes('href="https://fluxui.dev/components/button"'));
106+
assert.ok(html.includes('href="https://fluxui.dev/components/input"'));
107+
assert.ok(html.includes('href="https://fluxui.dev/components/modal"'));
108108

109109
global.fetch = originalFetch;
110110
});

0 commit comments

Comments
 (0)