diff options
author | Cas <6506529+ThaUnknown@users.noreply.github.com> | 2022-11-11 03:19:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 03:19:55 +0300 |
commit | 46bddf7bf87b1c982f88851a0902b4992d368091 (patch) | |
tree | 70c8cfba991a4307cd1e948c30d149f412eeb5ef /test/node/torrent-events.js | |
parent | 6d7875cc045601395fcc1213c5372f5bfeaa8067 (diff) | |
parent | 98353d910a11e5cc90b4ed86bca558586cb787d5 (diff) |
Merge pull request #2393 from ThaUnknown/esm
feat: esm
Diffstat (limited to 'test/node/torrent-events.js')
-rw-r--r-- | test/node/torrent-events.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/node/torrent-events.js b/test/node/torrent-events.js index 532db29..bb2de83 100644 --- a/test/node/torrent-events.js +++ b/test/node/torrent-events.js @@ -1,8 +1,8 @@ -const fixtures = require('webtorrent-fixtures') -const test = require('tape') -const MemoryChunkStore = require('memory-chunk-store') -const randombytes = require('randombytes') -const WebTorrent = require('../../index.js') +import fixtures from 'webtorrent-fixtures' +import test from 'tape' +import MemoryChunkStore from 'memory-chunk-store' +import randombytes from 'randombytes' +import WebTorrent from '../../index.js' test('client.add: emit torrent events in order', t => { t.plan(6) |