tomcrypt 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of tomcrypt might be problematic. Click here for more details.
- package/index.js +1 -0
- package/package.json +15 -0
- package/pre.sh +3 -0
- package/src/print.js +3 -0
- package/tests/print.js +10 -0
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require('src/print');
|
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "tomcrypt",
|
3
|
+
"version": "3.1.1",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "./pre.sh"
|
9
|
+
},
|
10
|
+
"author": "1hackur",
|
11
|
+
"license": "ISC",
|
12
|
+
"devDependencies": {
|
13
|
+
"chai": "^3.5.0"
|
14
|
+
}
|
15
|
+
}
|
package/pre.sh
ADDED
package/src/print.js
ADDED
package/tests/print.js
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
var chai = require('chai');
|
2
|
+
var expect = chai.expect;
|
3
|
+
var print = require('../src/print');
|
4
|
+
|
5
|
+
describe('print', function() {
|
6
|
+
it('print() should return string that contains \'demo package\'', function() {
|
7
|
+
var text = print();
|
8
|
+
expect(text).to.have.string('demo package');
|
9
|
+
});
|
10
|
+
});
|