11 lines
241 B
TypeScript
11 lines
241 B
TypeScript
|
|
import mockManager from "../../src/module/mockManager";
|
||
|
|
|
||
|
|
describe("mock", () =>{
|
||
|
|
test("try to get mock data when no config", () => {
|
||
|
|
const data = mockManager.get({
|
||
|
|
originUrl: 'success'
|
||
|
|
})
|
||
|
|
expect(data).toBe(false)
|
||
|
|
})
|
||
|
|
})
|