Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit dda36e4

Browse files
committed
updated templates
1 parent b8febc4 commit dda36e4

7 files changed

Lines changed: 28 additions & 4 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ script:
2020
- aws configure --profile squeezer-test set aws_secret_access_key $aws_secret_access_key
2121
- aws configure --profile squeezer-test set region us-east-1
2222
- aws configure --profile squeezer-test set output json
23-
- npm run test-units
23+
- npm run test
2424
- npm run test-integration
2525

2626
notifications:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Please note we have a code of conduct, please follow it in all your interactions
1414

1515
### Units
1616

17-
- `npm run test-units`
17+
- `npm run test`
1818

1919
### Integration
2020

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
'use strict';
2+
3+
const expect = require('chai').expect;
4+
const Config = require('../');
5+
6+
module.exports = (sqz) => {
7+
const config = new Config(sqz);
8+
describe('sqz.tasks.config.set()', () => {
9+
it('should set a key', () => {
10+
sqz.config.set('testSetting', 'hello');
11+
});
12+
});
13+
14+
describe('sqz.tasks.config.get()', () => {
15+
it('should get a value', () => {
16+
expect(sqz.config.get('testSetting')).to.equal('hello');
17+
});
18+
});
19+
};

lib/plugins/install/hooks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
- identifier : 'project:install'
2-
path : 'lib'
2+
path : 'lib/index.js'
33
function : 'run'

lib/plugins/plugins.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": [
3+
"./test/index.js"
4+
]
5+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"url": "https://github.com/SqueezerIO/squeezer.git"
4848
},
4949
"scripts": {
50-
"test-units": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha test/units-runner.js --report lcovonly -- -R spec",
50+
"test": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha test/units-runner.js -- -R spec --recursive",
5151
"test-integration": "docker rm squeezer-test >/dev/null 2>/dev/null ; docker run -ti --privileged --name squeezer-test -v `pwd`:/app -v $HOME/.aws:/root/.aws squeezerio/test node /app/node_modules/.bin/mocha /app/test/integration-runner.js --timeout 3600000",
5252
"eslint": "eslint . --cache",
5353
"jsinspect": "jsinspect -t 30 -i ./bin/ ./lib/ ./test/ --ignore './lib/plugins/serve/public'",

0 commit comments

Comments
 (0)