@stamp/fp-constructor
Advanced tools
Comparing version 0.1.5 to 0.1.6
var compose = require('@stamp/compose'); | ||
var FpConstructor = require('..'); | ||
describe('@stamp/fp-constructor', function () { | ||
it('adds .constructor static method', function () { | ||
describe('@stamp/fp-constructor', function() { | ||
it('adds .constructor should be the stamp itself', function() { | ||
var Stamp = compose(FpConstructor); | ||
expect(typeof Stamp.constructor).toBe('function'); | ||
expect(Stamp.constructor).toBe(Stamp); | ||
}); | ||
it('adds .constructor should be the stamp itself', function () { | ||
var Stamp = compose(FpConstructor); | ||
it('.constructor presence regardless of composition chain', function() { | ||
var Stamp = compose({staticProperties: {constructor: 1}}) | ||
.compose( | ||
{staticProperties: {constructor: 2}}, | ||
FpConstructor, | ||
{staticProperties: {constructor: 3}} | ||
).compose({staticProperties: {constructor: 4}}); | ||
@@ -14,0 +19,0 @@ expect(Stamp.constructor).toBe(Stamp); |
{ | ||
"name": "@stamp/fp-constructor", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Adds the Stamp.constructor property referencing Stamp itself", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1677
23