Skip to content

Commit

Permalink
fix: update tests to use import.
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentBot1 committed Jun 2, 2024
1 parent 98c8d76 commit d053c93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/node-download.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const WebTorrent = require('../index')
const fs = require('fs')
import WebTorrent from '../index.js'
import fs from 'fs'

const client = new WebTorrent()

Expand Down
2 changes: 1 addition & 1 deletion examples/node-seed.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const WebTorrent = require('../index')
import WebTorrent from '../index.js'

const client = new WebTorrent()
const filePath = __filename
Expand Down

0 comments on commit d053c93

Please sign in to comment.