🎥 Make videos programmatically with React
more tests
Patric Salvisberge816ef6b982a
diff --git a/packages/core/src/test/static-file-safe-uri.test.ts b/packages/core/src/test/static-file-safe-uri.test.tsindex 241628f01e..f0833bfc5f 100644--- a/packages/core/src/test/static-file-safe-uri.test.ts+++ b/packages/core/src/test/static-file-safe-uri.test.ts@@ -20,3 +20,13 @@ test('staticFile() should encode all problematic characters except slashes', ()const nameWithSlashes = '/test/#example/$word';expect(staticFile(nameWithSlashes)).toBe('/test/%23example/%24word');});++test('if no leading slash exists, one should be added', () => {+ const nameWithSlashes = 'test/example';+ expect(staticFile(nameWithSlashes)).toBe('/test/example');+});++test('problematic character at the beginning should be encoded correctly', () => {+ const problematicStart = '#test/example';+ expect(staticFile(problematicStart)).toBe('/%23test/example');+});