Skip to content

Commit

Permalink
Avoid import.meta.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Jan 6, 2025
1 parent 7a8b4ef commit 7dbde73
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import test from 'node:test'
import assert from 'node:assert'
import fs from 'node:fs'
import { fileURLToPath } from 'node:url'
import docpt from 'prop-types-table'

test('class propTypes', function () {
const source = fs.readFileSync(
fileURLToPath(import.meta.resolve('@u-wave/react-youtube/src/index.js'))
)
const source = fs.readFileSync('./node_modules/@u-wave/react-youtube/src/index.js')
const expected = `
| Name | Type | Default | Description |
|:-----|:-----|:-----|:-----|
Expand Down

0 comments on commit 7dbde73

Please sign in to comment.