Skip to content

Commit

Permalink
fix travis test
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Feb 4, 2022
1 parent 67eed4b commit 9c788cd
Show file tree
Hide file tree
Showing 4 changed files with 404 additions and 82 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
language: node_js
node_js:
- 10
- 9
- 8
- 17
- 16
- 15
- 14
- 13
- 12
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
"underscore": "^1.13.1"
},
"devDependencies": {
"chai": "^3.5.0",
"chai": "^4.3.0",
"feedparser": "2.2.0",
"mocha": "^5.2.0",
"mocha": "^9.2.0",
"mock-http-server": "^1.0.0",
"mongoose": "^5.13.7",
"supertest": "^4.0.2"
Expand Down
11 changes: 5 additions & 6 deletions test/core-plugins.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { assert as assert } from 'chai'
import { assert } from 'chai';

import config from '../config';
global.CONFIG = config;
import CONFIG from '../config.loader.js';

import { getPluginData as iframely } from '../lib/core';
import { findWhitelistRecordFor as findWhitelistRecordFor } from '../lib/whitelist';
import { getPluginData as iframely } from '../lib/core.js';
import { findWhitelistRecordFor as findWhitelistRecordFor } from '../lib/whitelist.js';
import * as utils from '../lib/utils.js';

function assertOembed(oembed) {
Expand Down Expand Up @@ -107,7 +106,7 @@ describe('Core plugins', function() {
assert.equal(data.width, 400);
assert.equal(data.height, 211);
assert.equal(data.content_length, 33572);
assert.equal(data.format, "jpeg");
assert.equal(data.format, "jpg");
done();
});
});
Expand Down
Loading

0 comments on commit 9c788cd

Please sign in to comment.