Fix unit test, use kebab-case for url query param

This commit is contained in:
Frank Noirot
2025-01-13 10:42:08 -05:00
parent b30a37a0b3
commit df01c233e4
5 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ describe(`link creation tests`, () => {
// Converted with external online tools
const expectedEncodedCode = `ZXh0cnVzaW9uRGlzdGFuY2UgPSAxMg%3D%3D`
const expectedLink = `http://localhost:3000/?create-file=&name=test&units=mm&code=${expectedEncodedCode}&askToOpenInDesktop`
const expectedLink = `http://localhost:3000/?create-file=true&name=test&units=mm&code=${expectedEncodedCode}&ask-open-desktop=true`
const result = createCreateFileUrl({ code, name, units })
expect(result.toString()).toBe(expectedLink)