Skip to content

Commit 9c788cd

Browse files
committed
fix travis test
1 parent 67eed4b commit 9c788cd

File tree

4 files changed

+404
-82
lines changed

4 files changed

+404
-82
lines changed

.travis.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
language: node_js
22
node_js:
3-
- 10
4-
- 9
5-
- 8
3+
- 17
4+
- 16
5+
- 15
6+
- 14
7+
- 13
8+
- 12

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
"underscore": "^1.13.1"
4949
},
5050
"devDependencies": {
51-
"chai": "^3.5.0",
51+
"chai": "^4.3.0",
5252
"feedparser": "2.2.0",
53-
"mocha": "^5.2.0",
53+
"mocha": "^9.2.0",
5454
"mock-http-server": "^1.0.0",
5555
"mongoose": "^5.13.7",
5656
"supertest": "^4.0.2"

test/core-plugins.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { assert as assert } from 'chai'
1+
import { assert } from 'chai';
22

3-
import config from '../config';
4-
global.CONFIG = config;
3+
import CONFIG from '../config.loader.js';
54

6-
import { getPluginData as iframely } from '../lib/core';
7-
import { findWhitelistRecordFor as findWhitelistRecordFor } from '../lib/whitelist';
5+
import { getPluginData as iframely } from '../lib/core.js';
6+
import { findWhitelistRecordFor as findWhitelistRecordFor } from '../lib/whitelist.js';
87
import * as utils from '../lib/utils.js';
98

109
function assertOembed(oembed) {
@@ -107,7 +106,7 @@ describe('Core plugins', function() {
107106
assert.equal(data.width, 400);
108107
assert.equal(data.height, 211);
109108
assert.equal(data.content_length, 33572);
110-
assert.equal(data.format, "jpeg");
109+
assert.equal(data.format, "jpg");
111110
done();
112111
});
113112
});

0 commit comments

Comments
 (0)