zetoff-js-helpers
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "zetoff-js-helpers", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Commonly used helpers in Zetoff", | ||
@@ -56,3 +56,6 @@ "main": "dist/zetoff-js-helpers.js", | ||
"mainVarName": "zJSHelpers" | ||
}, | ||
"dependencies": { | ||
"lodash": "^4.17.4" | ||
} | ||
} |
@@ -0,7 +1,17 @@ | ||
import validateEmail from './validateEmail'; | ||
import nameFromEmail from './nameFromEmail'; | ||
import naturalJoin from './naturalJoin'; | ||
const zJSHelpers = { | ||
greet() { | ||
return 'hello'; | ||
} | ||
validateEmail, | ||
nameFromEmail, | ||
naturalJoin, | ||
}; | ||
export { | ||
validateEmail, | ||
nameFromEmail, | ||
naturalJoin, | ||
} | ||
export default zJSHelpers; |
import zJSHelpers from '../../src/zetoff-js-helpers'; | ||
describe('zJSHelpers', () => { | ||
describe('Greet function', () => { | ||
beforeEach(() => { | ||
spy(zJSHelpers, 'greet'); | ||
zJSHelpers.greet(); | ||
}); | ||
it('should have been run once', () => { | ||
expect(zJSHelpers.greet).to.have.been.calledOnce; | ||
}); | ||
it('should have always returned hello', () => { | ||
expect(zJSHelpers.greet).to.have.always.returned('hello'); | ||
}); | ||
}); | ||
}); |
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
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
2062552
28
16810
1
1
+ Addedlodash@^4.17.4
+ Addedlodash@4.17.21(transitive)