Skip to content

Commit 3e3c4ba

Browse files
authored
chore/test: use chai#should (hexojs#4902)
1 parent 1b824df commit 3e3c4ba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.mocharc.yml

-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ reporter: spec
33
ui: bdd
44
full-trace: true
55
exit: true
6-
require:
7-
- "chai/register-should"
86
parallel: true

test/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

3-
require('chai');
3+
const chai = require('chai');
4+
global.should = chai.should();
45

56
describe('Hexo', () => {
67
require('./scripts/box');

0 commit comments

Comments
 (0)