Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Feb 24, 2023
1 parent 44dae42 commit 9816acd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ describe('Remote Loader', () => {
expect(loader.loadScript).toHaveBeenCalledWith('foo.com/actions/file.js')
})

it('should replace the cdn for staging', async () => {
it('should work if the cdn is staging', async () => {
const stagingURL = 'https://cdn.segment.build/actions/foo.js'

window.analytics = {}
window.analytics._cdn = 'foo.com'
await remoteLoader(
Expand All @@ -99,7 +101,7 @@ describe('Remote Loader', () => {
{
name: 'remote plugin',
creationName: 'remote plugin',
url: 'https://cdn.segment.build/actions/foo.js',
url: stagingURL,
libraryName: 'testPlugin',
settings: {},
},
Expand Down

0 comments on commit 9816acd

Please sign in to comment.