@rdfjs/fetch
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -9,2 +9,4 @@ const defaultFactory = require('@rdfjs/dataset') | ||
rdfFetch.Headers = rdfFetchLite.Headers | ||
module.exports = rdfFetch |
{ | ||
"name": "@rdfjs/fetch", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Wrapper for fetch to simplify sending and receiving RDF data", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "standard && jest" | ||
"test": "standard && mocha" | ||
}, | ||
@@ -26,3 +26,3 @@ "repository": { | ||
"@rdfjs/dataset": "^1.0.1", | ||
"@rdfjs/fetch-lite": "^2.0.1", | ||
"@rdfjs/fetch-lite": "^2.1.0", | ||
"@rdfjs/formats-common": "^2.0.1" | ||
@@ -32,3 +32,3 @@ }, | ||
"@rdfjs/sink-map": "^1.0.1", | ||
"jest": "^24.9.0", | ||
"mocha": "^7.1.1", | ||
"nock": "^11.6.0", | ||
@@ -35,0 +35,0 @@ "standard": "^14.3.1" |
@@ -1,3 +0,3 @@ | ||
/* global describe, expect, it */ | ||
const { strictEqual } = require('assert') | ||
const { describe, it } = require('mocha') | ||
const nock = require('nock') | ||
@@ -10,3 +10,3 @@ const rdf = require('@rdfjs/dataset') | ||
it('should be a function', () => { | ||
expect(typeof rdfFetch).toBe('function') | ||
strictEqual(typeof rdfFetch, 'function') | ||
}) | ||
@@ -17,4 +17,4 @@ | ||
expect(typeof result).toBe('object') | ||
expect(typeof result.then).toBe('function') | ||
strictEqual(typeof result, 'object') | ||
strictEqual(typeof result.then, 'function') | ||
}) | ||
@@ -35,3 +35,3 @@ | ||
expect([ | ||
const mediaTypes = [ | ||
'application/ld+json', | ||
@@ -43,3 +43,7 @@ 'application/trig', | ||
'text/turtle' | ||
].every(mediaType => accept.includes(mediaType))).toBe(true) | ||
] | ||
mediaTypes.forEach(mediaType => { | ||
strictEqual(accept.includes(mediaType), true) | ||
}) | ||
}) | ||
@@ -69,3 +73,3 @@ | ||
expect(accept).toBe('application/ld+json, text/turtle') | ||
strictEqual(accept, 'application/ld+json, text/turtle') | ||
}) | ||
@@ -81,3 +85,3 @@ | ||
expect(dataset instanceof rdf.dataset().constructor).toBe(true) | ||
strictEqual(dataset instanceof rdf.dataset().constructor, true) | ||
}) | ||
@@ -102,4 +106,4 @@ | ||
expect(dataset instanceof CustomDataset).toBe(true) | ||
strictEqual(dataset instanceof CustomDataset, true) | ||
}) | ||
}) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8016
7
122
Updated@rdfjs/fetch-lite@^2.1.0