File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"imports" : {
3
- "assert" : " https://deno.land/std@0.220.0/assert/mod.ts" ,
4
- "~/" : " http://localhost:8080/"
3
+ "esm.sh/" : " http://localhost:8080/"
5
4
}
6
5
}
Original file line number Diff line number Diff line change 1
- // related issue: https://github.com/esm-dev/esm.sh/issues/[ISSUE_NUMBER]
1
+ import { assert , assertEquals , assertStringIncludes } from "jsr:@std/assert" ;
2
2
3
3
// change the import path to the module you want to test
4
- import * as mod from "~/PKG[@SEMVER][/PATH]" ;
5
- import { assert , assertEquals , assertStringIncludes } from "assert" ;
4
+ import * as mod from "esm.sh/PKG[@SEMVER][/PATH]" ;
6
5
7
- // change the test name and the test assertions
8
- Deno . test ( "TEST NAME " , async ( ) => {
6
+ // related issue: https://github.com/esm-dev/esm.sh/issues/ISSUE_NUMBER
7
+ Deno . test ( "issue #ISSUE_NUMBER " , async ( ) => {
9
8
assert ( "foo" in mod ) ;
10
9
assertEquals ( typeof mod . foo , "function" ) ;
11
10
assertStringIncludes ( mod . foo ( ) , "bar" ) ;
You can’t perform that action at this time.
0 commit comments