Skip to content

Commit

Permalink
test: make test happy
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Jul 24, 2023
1 parent 3c53ca2 commit bafe9b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 34 deletions.
6 changes: 4 additions & 2 deletions __tests__/inject.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import test from 'ava'
import { len } from '../dist/shared'
import { createInjectScript } from '../dist/inject'
import { jsdelivr } from '../dist/url'
import type { TrackModule } from '../dist/interface'
import type { TrackModule } from '../dist'

interface MockIIFEMdoule extends TrackModule{
relativeModule: string
version: string
bindings: Set<string>
}

test('inject', (t) => {
Expand All @@ -15,7 +16,8 @@ test('inject', (t) => {
relativeModule: 'fake.js',
version: '0.0.0.',
name: 'fake',
spare: ['fake.css', 'fake2.css', 'fake2.js']
spare: ['fake.css', 'fake2.css', 'fake2.js'],
bindings: new Set()
})
const injectScript = createInjectScript(modules, jsdelivr)
t.is(len(injectScript.toTags()), 4)
Expand Down
32 changes: 0 additions & 32 deletions __tests__/vm.spec.ts

This file was deleted.

0 comments on commit bafe9b0

Please sign in to comment.