[hotfix] Ignore type checking for edge
[platform/framework/web/wrtjs.git] / device_home / node_modules / jake / test / integration / selfdep.js
1 let assert=require("assert"),exec=require("child_process").execSync;suite("selfDep",(function(){let e;this.timeout(7e3),setup((function(){e=process.stderr.write,process.stderr.write=function(){}})),teardown((function(){process.stderr.write=e})),test("self dep const",(function(){try{exec("./node_modules/.bin/jake selfdepconst")}catch(e){assert(e.message.indexOf("dependency of itself")>-1)}})),test("self dep dyn",(function(){try{exec("./node_modules/.bin/jake selfdepdyn")}catch(e){assert(e.message.indexOf("dependency of itself")>-1)}}))}));