-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(exports): remove unused export from fetch-utils (#3463)
This removes an unused export from src/compiler/sys/fetch/fetch-utils.ts and inlines a function which was used in only one place. A JSDoc is added for the function that is changed.
- Loading branch information
1 parent
2756107
commit 9b6d0ea
Showing
2 changed files
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import type * as d from '../../../../declarations'; | ||
import { getNodeModuleFetchUrl, getStencilModuleUrl, getStencilRootUrl, skipFilePathFetch } from '../fetch-utils'; | ||
import { getNodeModuleFetchUrl, getStencilModuleUrl, skipFilePathFetch } from '../fetch-utils'; | ||
import { createSystem } from '../../stencil-sys'; | ||
|
||
describe('fetch module', () => { | ||
|
@@ -9,13 +9,6 @@ describe('fetch module', () => { | |
compilerExe = 'http://localhost:3333/@stencil/core/compiler/stencil.js'; | ||
}); | ||
|
||
it('getStencilRootUrl', () => { | ||
expect(getStencilRootUrl(compilerExe)).toBe('http://localhost:3333/@stencil/core/'); | ||
|
||
compilerExe = 'https://cdn.stenciljs.com/npm/@stencil/[email protected]/compiler/stencil.js'; | ||
expect(getStencilRootUrl(compilerExe)).toBe('https://cdn.stenciljs.com/npm/@stencil/[email protected]/'); | ||
}); | ||
|
||
describe('getStencilModulePath', () => { | ||
it('cdn w/ version w/out node_module prefix', () => { | ||
compilerExe = 'https://cdn.stenciljs.com/npm/@stencil/[email protected]/compiler/stencil.js'; | ||
|