@nymag/cuneiform-cmpt
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -70,2 +70,8 @@ 'use strict'; | ||
it ('returns input data', function () { | ||
const mockData = {}; | ||
expect(fn(mockRef, mockData)).to.equal(mockData); | ||
}); | ||
it ('renders simple-list content descriptors as an array of {text: string} objects in edit mode', function () { | ||
@@ -72,0 +78,0 @@ const mockData = { |
@@ -228,2 +228,11 @@ 'use strict'; | ||
it ('automatically includes site slug from locals when siteSlugs is undefined', function () { | ||
const result = fn({}, {site: {slug: 'zar'}}); | ||
expect(result.body.query.bool.should).to.deep.include( | ||
{term: {site: 'zar'}} | ||
); | ||
}); | ||
it ('join sitePrefixes, crossposts, and siteSlugs within the same should clause (i.e. use an OR relationship)', function () { | ||
@@ -230,0 +239,0 @@ const result = fn({ |
{ | ||
"name": "@nymag/cuneiform-cmpt", | ||
"description": "", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "nyc --reporter=text --reporter=text-summary mocha index.test.js **/*.test.js" | ||
"test": "nyc --reporter=text --reporter=text-summary mocha index.test.js **/*.test.js", | ||
"report": "echo 'Generating HTML code coverage report' && nyc --reporter=lcov --reporter=text-summary mocha index.test.js **/*.test.js" | ||
}, | ||
@@ -9,0 +10,0 @@ "author": "", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
27408
9
679
4