Tests always run on localhost, don't expect the prod origin
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user