From 675d904779cebb9aa1be763a658fc4245952fa8a Mon Sep 17 00:00:00 2001 From: RobinzZH Date: Thu, 14 Jun 2018 16:25:59 +0800 Subject: [PATCH] refactor(http.test): code refactor --- test/bin/tsw/util/isTST.test.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test/bin/tsw/util/isTST.test.js b/test/bin/tsw/util/isTST.test.js index 6e578c4b..a1d6d6f6 100644 --- a/test/bin/tsw/util/isTST.test.js +++ b/test/bin/tsw/util/isTST.test.js @@ -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); - }); });