Skip to content

Commit 757c157

Browse files
committed
remove unused polyfills from tests
1 parent ad9c097 commit 757c157

3 files changed

Lines changed: 0 additions & 11 deletions

File tree

test/basic.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
if (typeof performance === 'undefined') {
2-
global.performance = require('perf_hooks').performance
3-
}
4-
51
import { createRequire } from 'module'
62
import t from 'tap'
73
import { LRUCache as LRU } from '../dist/esm/index.js'

test/fetch.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
if (typeof performance === 'undefined') {
2-
global.performance = require('perf_hooks').performance
3-
}
41
import t from 'tap'
52
import { BackgroundFetch, LRUCache } from '../dist/esm/index.js'
63
import { expose } from './fixtures/expose.js'

test/ttl.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
if (typeof performance === 'undefined') {
2-
global.performance = require('perf_hooks').performance
3-
}
4-
51
import t, { Test } from 'tap'
62
import { LRUCache } from '../dist/esm/index.js'
73
import { expose } from './fixtures/expose.js'

0 commit comments

Comments
 (0)