Skip to content

Commit ca447f4

Browse files
authored
Update init_test.js
1 parent ee2c689 commit ca447f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/runner/init_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path');
22
const fs = require('fs');
33
const mkdirp = require('mkdirp');
4-
const { createPromptModule } = require('@inquirer/testing');
4+
const { createPrompt } = require('@inquirer/testing');
55

66
const runner = path.join(__dirname, '../../bin/codecept.js');
77
const codecept_dir = path.join(__dirname, '/../data/sandbox/configs/init');
@@ -35,8 +35,8 @@ describe('Init Command', function () {
3535
});
3636

3737
it('should init Codecept with TypeScript REST JSONResponse English', async () => {
38-
const prompt = createPromptModule();
39-
38+
const prompt = createPrompt();
39+
4040
prompt.inject([
4141
'Y', // Confirm TypeScript usage
4242
'', // Default for test location
@@ -56,7 +56,7 @@ describe('Init Command', function () {
5656
});
5757

5858
it.skip('should init Codecept with JavaScript REST JSONResponse de-DE', async () => {
59-
const prompt = createPromptModule();
59+
const prompt = createPrompt();
6060

6161
prompt.inject([
6262
'', // Default (No TypeScript)

0 commit comments

Comments
 (0)