Skip to content

Commit

Permalink
chore(groq): use relative imports to 'groq' from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge authored and rexxars committed Feb 14, 2024
1 parent ef47bad commit b5dc763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/groq/test/groq.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

const {strict: assert} = require('node:assert')

const groq = require('groq')
const groq = require('../src')

assert.equal(typeof groq, 'function')

// Ensure it's possible to check what version of groq is being used
const pkg = require('groq/package.json')
const pkg = require('../groq/package.json')

assert.equal(typeof pkg.version, 'string')

Expand Down
2 changes: 1 addition & 1 deletion packages/groq/test/groq.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {strict as assert} from 'node:assert'

import groq from 'groq'
// Ensure it's possible to check what version of groq being used
import pkg from 'groq/package.json' assert {type: 'json'}
import pkg from '../package.json' assert {type: 'json'}

assert.equal(typeof groq, 'function')
assert.equal(typeof pkg.version, 'string')
Expand Down

0 comments on commit b5dc763

Please sign in to comment.