MCPcopy
hub / github.com/eggjs/egg / checkApp

Function checkApp

test/egg.test.ts:37–44  ·  view source on GitHub ↗
(json: any)

Source from the content-addressed store, hash-verified

35 checkApp(dumpped.config);
36
37 function checkApp(json: any) {
38 assert(/\d+\.\d+\.\d+/.test(json.plugins.onerror.version));
39 assert(json.config.name === 'demo');
40 // should dump dynamic config
41 assert(json.config.tips === 'hello egg started');
42
43 assert(json.appInfo);
44 }
45 });
46
47 it('should dump router json', () => {

Callers 1

egg.test.tsFile · 0.85

Calls 1

testMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…