1- const { strictEqual } = require ( 'assert' )
2- const { describe , it } = require ( 'mocha' )
3- const nock = require ( 'nock' )
4- const rdf = require ( '@rdfjs/dataset' )
5- const rdfFetch = require ( '..' )
6- const SinkMap = require ( '@rdfjs/sink-map' )
1+ import { strictEqual } from 'assert'
2+ import rdf from '@rdfjs/dataset'
3+ import SinkMap from '@rdfjs/sink-map'
4+ import { describe , it } from 'mocha'
5+ import nock from 'nock'
6+ import rdfFetch from '../index.js'
77
88describe ( '@rdfjs/fetch' , ( ) => {
99 it ( 'should be a function' , ( ) => {
@@ -23,7 +23,7 @@ describe('@rdfjs/fetch', () => {
2323 nock ( 'http://example.org' )
2424 . get ( '/formats-common' )
2525 . reply ( 200 , function ( ) {
26- accept = this . req . headers . accept [ 0 ]
26+ accept = this . req . headers . accept
2727
2828 return [ 200 , '{}' ]
2929 } )
@@ -50,7 +50,7 @@ describe('@rdfjs/fetch', () => {
5050 nock ( 'http://example.org' )
5151 . get ( '/formats-options' )
5252 . reply ( 200 , function ( ) {
53- accept = this . req . headers . accept [ 0 ]
53+ accept = this . req . headers . accept
5454
5555 return [ 200 , '{}' ]
5656 } )
0 commit comments