Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #16 from PierrickP/greenkeeper-update-all
Browse files Browse the repository at this point in the history
Update all dependencies 🌴
  • Loading branch information
PierrickP authored Aug 10, 2016
2 parents 6b7839d + 5e60423 commit dd31a67
Show file tree
Hide file tree
Showing 38 changed files with 71 additions and 66 deletions.
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
},
"env": {
"es6": true,
"node": true,
"mocha": true
"node": true
},
"extends": "airbnb-base"
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "Un-official node.js module for interact with your N26 (previously Number26) account",
"main": "index.js",
"scripts": {
"test": "snyk test && istanbul cover _mocha tests/index.js && if [ \"$CONTINUOUS_INTEGRATION\" = \"true\" ]; then cat ./coverage/lcov.info | ./node_modules/.bin/coveralls; fi",
"test": "npm run lint && istanbul cover _mocha tests/index.js && if [ \"$CONTINUOUS_INTEGRATION\" = \"true\" ]; then cat ./coverage/lcov.info | ./node_modules/.bin/coveralls; fi",
"test-unmock": "node tests/unmock.js",
"lint": "eslint *.js lib/* tests/*; exit 0",
"lint": "eslint *.js lib/* tests/*",
"docs": "jsdoc -c .jsdoc.json -R README.md",
"deployDocs": "npm run docs && sh ./scripts/deployDocs.sh"
},
Expand Down Expand Up @@ -35,13 +35,13 @@
"coveralls": "^2.11.9",
"dirty-chai": "^1.2.2",
"docdash": "^0.4.0",
"eslint": "^2.8.0",
"eslint-config-airbnb-base": "^3.0.1",
"eslint": "^3.2.2",
"eslint-config-airbnb-base": "^5.0.1",
"eslint-plugin-import": "^1.5.0",
"inquirer": "^1.0.3",
"istanbul": "^0.4.2",
"jsdoc": "^3.4.0",
"mocha": "^2.2.5",
"mocha": "^3.0.2",
"nock": "^8.0.0",
"snyk": "^1.18.0"
},
Expand Down
17 changes: 17 additions & 0 deletions tests/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"rules": {
"arrow-body-style": 0,
"global-require": 0,
"max-len": 0,
"no-console": 0,
"no-mixed-operators": 0,
"import/no-extraneous-dependencies": [2, {
"devDependencies": true
}]
},
"env": {
"es6": true,
"node": true,
"mocha": true
}
}
2 changes: 1 addition & 1 deletion tests/account/account.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/addresses.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
4 changes: 2 additions & 2 deletions tests/account/auth.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand All @@ -15,7 +15,7 @@ describe('auth', () => {
let api2;

before((done) => {
return require('../fixtures/auth')((err, m) => {
require('../fixtures/auth')((err, m) => {
m.createdAt = +new Date() / 1000 - 10000;
n26 = m;

Expand Down
2 changes: 1 addition & 1 deletion tests/account/barzahlen.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/cards.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/categories.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/contacts.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/csv.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/invitations.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/limits.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/me.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/memo.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/recipients.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/statement.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const fs = require('fs');
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/statements.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/stats.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/statuses.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/transaction.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/transactions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
2 changes: 1 addition & 1 deletion tests/account/transfer.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down
24 changes: 12 additions & 12 deletions tests/account/unpair.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

chai.use(dirtyChai);
Expand Down Expand Up @@ -100,28 +100,28 @@ describe('Unpair mobile', () => {
.reply(200);
});

it('should init unpair', (cb) => {
return n26.unpairInit('1234', '1234567890')
it('should init unpair', (done) => {
n26.unpairInit('1234', '1234567890')
.then(() => {
expect(apiUpstart.isDone()).to.be.true();
expect(apiVerify.isDone()).to.be.true();
expect(apiValidationPin.isDone()).to.be.true();
expect(apiValidationCard.isDone()).to.be.true();
expect(apiValidationSms.isDone()).to.be.true();

cb();
done();
})
.catch(cb);
.catch(done);
});

it('should confirm unpair', (cb) => {
return n26.unpairConfirm('12345')
it('should confirm unpair', (done) => {
n26.unpairConfirm('12345')
.then(() => {
expect(apiValidationSmsVerify.isDone()).to.be.true();

cb();
done();
})
.catch(cb);
.catch(done);
});
});

Expand Down Expand Up @@ -155,8 +155,8 @@ describe('Unpair mobile', () => {
});
});

it('should init unpair', (cb) => {
return n26.unpairInit('1234', '1234567890')
it('should init unpair', (done) => {
n26.unpairInit('1234', '1234567890')
.then(() => {})
.catch((err) => {
expect(err).to.be.eql({
Expand All @@ -167,7 +167,7 @@ describe('Unpair mobile', () => {
expect(apiUpstart.isDone()).to.be.true();
expect(apiVerify.isDone()).to.be.true();

cb();
done();
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion tests/card/block.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

const Card = require('../../lib/card.js');
Expand Down
2 changes: 1 addition & 1 deletion tests/card/limits.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

const Card = require('../../lib/card.js');
Expand Down
1 change: 0 additions & 1 deletion tests/fixtures/data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
module.exports = {
account: {
access_token: 'eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NTU1NDg5NDcsInVzZXJfbmFtZSI6Imlsb3Zlb3R0ZXJzQG1haWwuY29tIiwiYXV0aG9yaXRpZXMiOlsiVVNFUiJdLCJqdGkiOiJjZDE4NTE4OS01NGVlLTRlNzUtOTg1OC1lODU2ZDdmNTkwZWQiLCJjbGllbnRfaWQiOiJteS10cnVzdGVkLXdkcENsaWVudCIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSIsInRydXN0Il19.YeK8nhxyDLZkmPGA4at4yzhJcRzn2Y_iS5NJBenI4iY',
Expand Down
4 changes: 2 additions & 2 deletions tests/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');
const expect = chai.expect;

const N26 = require('../index');

const expect = chai.expect;

chai.use(dirtyChai);

describe('Create instance', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/static/barzahlen.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
/* eslint-disable global-require, max-len, arrow-body-style */
const nock = require('nock');
const chai = require('chai');
const dirtyChai = require('dirty-chai');

const expect = chai.expect;

const n26 = require('../../index');
Expand Down
5 changes: 2 additions & 3 deletions tests/unmock/barzahlen.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
'use strict';
/* eslint-disable global-require, max-len, no-console, arrow-body-style */

const chai = require('chai');
const dirtyChai = require('dirty-chai');
const expect = chai.expect;

const N26 = require('../../index');

const expect = chai.expect;

chai.use(dirtyChai);

const barzahlenProperties = [
Expand Down
Loading

0 comments on commit dd31a67

Please sign in to comment.