Skip to content

Commit

Permalink
test: Fixes failing travis tests for Node v10+
Browse files Browse the repository at this point in the history
  • Loading branch information
MonkeyDo committed Nov 5, 2018
1 parent 240d0dc commit bc9d859
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test/test-achievement.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

import * as testData from '../data/test-data.js';

import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import orm from './bookbrainz-data';
Expand All @@ -34,7 +35,6 @@ import testSprinter from './test-sprinter.js';
import testTimeTraveller from './test-time-traveller.js';
import testWorkerBee from './test-worker-bee.js';


chai.use(chaiAsPromised);
const {expect} = chai;

Expand Down Expand Up @@ -70,14 +70,16 @@ function tests() {
});

// suppress warnings from rejections
Achievement.__set__('console', {
error() {
// empty
},
warn() {
// empty
}
});
// Somehow modifies the global console object in Nove v10+ and causes a failure in Mocha

// Achievement.__set__('console', {
// error() {
// // empty
// },
// warn() {
// // empty
// }
// });

it('should reject invalid editors', () => {
const unlockPromise = testData.createRevisionist()
Expand Down

0 comments on commit bc9d859

Please sign in to comment.