diff --git a/src/lib/util/rewriteHTML.test.ts b/src/lib/util/rewriteHTML.test.ts
index 85db0cb21d..e6f525484c 100644
--- a/src/lib/util/rewriteHTML.test.ts
+++ b/src/lib/util/rewriteHTML.test.ts
@@ -1,86 +1,43 @@
import { rewriteHTML } from './rewriteHTML';
-const input = `
-
-
-
-
-
-
-
-
-
- Unleash - Enterprise ready feature toggles
-
-
-
-
-
-
-
-
-`;
+const input = `Unleash`;
test('rewriteHTML substitutes meta tag with existing rewrite value', () => {
const result = rewriteHTML(input, '/hosted');
expect(
- result.includes(''),
+ result.includes(''),
).toBe(true);
});
test('rewriteHTML substitutes meta tag with empty value', () => {
const result = rewriteHTML(input, '');
- expect(result.includes('')).toBe(
- true,
- );
+ expect(result.includes('')).toBe(true);
});
test('rewriteHTML substitutes asset paths correctly with baseUriPath', () => {
const result = rewriteHTML(input, '/hosted');
- expect(
- result.includes(
- '',
- ),
- ).toBe(true);
- expect(
- result.includes(
- ' ',
- ),
- ).toBe(true);
+ expect(result.includes('',
- ),
- ).toBe(true);
- expect(
- result.includes(
- ' ',
- ),
- ).toBe(true);
+ expect(result.includes('',
+ '',
),
).toBe(true);
});
test('rewriteHTML sets favicon path to root', () => {
const result = rewriteHTML(input, '');
- expect(result.includes('')).toBe(
+ expect(result.includes('')).toBe(
true,
);
});