mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-21 23:50:45 +00:00
Fix explicit script wait APIs (#1885)
This commit is contained in:
17 files changed
+659
-30
No files matched your search
@@ -7,8 +7,10 @@ const { countScriptSteps } = require("./scriptStepCounter.cjs");
|
||||
test("countScriptSteps counts common nct calls", () => {
|
||||
const source = `
|
||||
await nct.screen.waitFor('$ ', 5000);
|
||||
await nct.screen.waitForText('ready', 5000);
|
||||
await nct.screen.waitForRegex('READY.*', 5000);
|
||||
await nct.screen.sendLine('ls');
|
||||
nct.log('done');
|
||||
`;
|
||||
assert.equal(countScriptSteps(source), 3);
|
||||
assert.equal(countScriptSteps(source), 5);
|
||||
});
|
||||
Reference in new issue
Block a user