Skip to content

Instantly share code, notes, and snippets.

@rjpkuyper
Created February 17, 2023 06:11
Show Gist options
  • Save rjpkuyper/78b7e9a774c84e31c99348590bb482e9 to your computer and use it in GitHub Desktop.
Save rjpkuyper/78b7e9a774c84e31c99348590bb482e9 to your computer and use it in GitHub Desktop.
import { createUrl, Paths } from './get-env-vars'
describe("GetEnvVars", () => {
test('should create a new url', () => {
const url = 'https://example.com'
expect(createUrl(Paths.PRODUCTS, url)).toEqual(`${url}/${Paths.PRODUCTS}`);
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment