| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1c1cbf0 commit b8d2a29
659 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ import { strictEqual } from 'assert'; | |||
| 4 | 4 | import secret0 from '../fixtures/experimental.json' assert { type: 'json' }; | |
| 5 | 5 | const secret1 = await import('../fixtures/experimental.json', { | |
| 6 | 6 | assert: { type: 'json' }, | |
| 7 | - }); | ||
| 7 | + }); | ||
| 8 | 8 | ||
| 9 | 9 | strictEqual(secret0.ofLife, 42); | |
| 10 | 10 | strictEqual(secret1.default.ofLife, 42); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,7 +49,7 @@ async function test() { | |||
| 49 | 49 | ); | |
| 50 | 50 | ||
| 51 | 51 | await rejects( | |
| 52 | - import(jsonModuleDataUrl, { assert: { type: 'unsupported' }}), | ||
| 52 | + import(jsonModuleDataUrl, { assert: { type: 'unsupported' } }), | ||
| 53 | 53 | { code: 'ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED' } | |
| 54 | 54 | ); | |
| 55 | 55 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,6 +50,6 @@ await rejects( | |||
| 50 | 50 | ); | |
| 51 | 51 | ||
| 52 | 52 | await rejects( | |
| 53 | - import(jsonModuleDataUrl, { assert: { type: 'unsupported' }}), | ||
| 53 | + import(jsonModuleDataUrl, { assert: { type: 'unsupported' } }), | ||
| 54 | 54 | { code: 'ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED' } | |
| 55 | 55 | ); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,19 +36,19 @@ describe('ESM: importing JSON', () => { | |||
| 36 | 36 | await writeFile(url, JSON.stringify({ id: i++ })); | |
| 37 | 37 | const absoluteURL = await import(`${url}`, { | |
| 38 | 38 | assert: { type: 'json' }, | |
| 39 | - }); | ||
| 39 | + }); | ||
| 40 | 40 | await writeFile(url, JSON.stringify({ id: i++ })); | |
| 41 | 41 | const queryString = await import(`${url}?a=2`, { | |
| 42 | 42 | assert: { type: 'json' }, | |
| 43 | - }); | ||
| 43 | + }); | ||
| 44 | 44 | await writeFile(url, JSON.stringify({ id: i++ })); | |
| 45 | 45 | const hash = await import(`${url}#a=2`, { | |
| 46 | 46 | assert: { type: 'json' }, | |
| 47 | - }); | ||
| 47 | + }); | ||
| 48 | 48 | await writeFile(url, JSON.stringify({ id: i++ })); | |
| 49 | 49 | const queryStringAndHash = await import(`${url}?a=2#a=2`, { | |
| 50 | 50 | assert: { type: 'json' }, | |
| 51 | - }); | ||
| 51 | + }); | ||
| 52 | 52 | ||
| 53 | 53 | assert.notDeepStrictEqual(absoluteURL, queryString); | |
| 54 | 54 | assert.notDeepStrictEqual(absoluteURL, hash); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments