Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
jasmine-static-land
Advanced tools
A package containing unit tests for static land specifications
A package for testing the compatability of your Static land types against it's laws within Jasmine
npm install i -D jasmine-static-land
First you need to load the package which contains a custom matcher
const JSL = require('jasmine-static-land')
Then register it with any test suite you want to use it in:
describe('Cat', function(){
beforeEach(function(){
jasmine.addMatchers(JSL)
})
})
Once registered, you may use any matcher exposed in the Api:
const cat = require('cat')
it('can impliment Foldable, Monad and Chain', function(){
expect(cat).toBeDefined()
expect(cat).toBeFoldable()
expect(cat).toBeMonad()
expect(cat).toBeChain()
})
You can also use the JSL.it() as a shorthand to specify a list of definitions for each type
const dog = require('dog')
describe('Dog', function(){
JSL.it(['Foldable', 'Monad', 'Chain'], dog)
})
There is also the ability to automatically test types based on the functions they define using JSL.all():
const animals = require('animal-types')
describe('Animals', function(){
JSL.all(animals) // { Cat: ... , Dog: ... , Ferret: ... }
})
(Warning: Use at your own risk, this can be useful for sanity checking but it won't be able to know which functions should be implimented, only if they are lawful)
Refer to the Static Land Spec for a more complete breakdown of the laws being tested.
FAQs
A package containing unit tests for static land specifications
The npm package jasmine-static-land receives a total of 2 weekly downloads. As such, jasmine-static-land popularity was classified as not popular.
We found that jasmine-static-land demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.