mt-testpackage 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "mt-testpackage",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "my first npm package",
5
5
  "main": "mt-testpackage.js",
6
6
  "author": "Heinz Werner",
7
- "license": "ISC"
7
+ "license": "ISC",
8
+ "scripts" : {
9
+ "test" : "mocha tests"
10
+ },
11
+ "postinstall" : "npm test"
8
12
  }
@@ -1,6 +1,8 @@
1
1
  const assert = require('assert');
2
2
  const my_package = require('../mt-testpackage');
3
3
 
4
+ console.debug("this is my first test");
5
+
4
6
  describe('my first package', function() {
5
7
  it('test greeting', function() {
6
8
  const result = my_package.greet('world');