Skip to content

Commit

Permalink
refactor(http.test): code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinzZH committed Jun 14, 2018
1 parent 98efd54 commit 675d904
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/bin/tsw/util/isTST.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,26 @@ describe('test isTST', () => {
const req = {};

it('no extendMod', async () => {


config.extendMod = false;

expect(isTST.isTST(req)).to.equal(false);

});

it('extendMod no isTST', async () => {

config.extendMod = {};

expect(isTST.isTST(req)).to.equal(false);

});

it('extendMod isTST return false', async () => {

config.extendMod = {
isTST: () => false
};

expect(isTST.isTST(req)).to.equal(false);

});

it('extendMod isTST return true', async () => {

config.extendMod = {
isTST: () => true
};

expect(isTST.isTST(req)).to.equal(true);

});
});

0 comments on commit 675d904

Please sign in to comment.