Tests always run on localhost, don't expect the prod origin

This commit is contained in:
Frank Noirot
2024-10-16 15:56:17 -07:00
parent bb67a9e9cf
commit 2048c26b9f

View File

@ -1,4 +1,4 @@
import { CREATE_FILE_URL_PARAM, PROD_APP_URL } from './constants'
import { CREATE_FILE_URL_PARAM } from './constants'
import { createFileLink } from './createFileLink'
describe(`createFileLink`, () => {
@ -9,7 +9,7 @@ describe(`createFileLink`, () => {
// Converted with external online tools
const expectedEncodedCode = `ZXh0cnVzaW9uRGlzdGFuY2UgPSAxMg%3D%3D`
const expectedLink = `${PROD_APP_URL}/?${CREATE_FILE_URL_PARAM}&name=test&units=mm&code=${expectedEncodedCode}`
const expectedLink = `http:/localhost:3000/?${CREATE_FILE_URL_PARAM}&name=test&units=mm&code=${expectedEncodedCode}`
const result = createFileLink({ code, name, units })
expect(result).toBe(expectedLink)