(projectOpts)
| 37 | }); |
| 38 | |
| 39 | function buildCommand(projectOpts) { |
| 40 | let cli = new MockCLI({ ui }); |
| 41 | let options = { |
| 42 | ui, |
| 43 | project: new Project(process.cwd(), projectOpts || { name: 'some-random-name' }, ui, cli), |
| 44 | tasks, |
| 45 | settings: {}, |
| 46 | }; |
| 47 | |
| 48 | command = new InitCommand(options); |
| 49 | } |
| 50 | |
| 51 | it("doesn't allow to create an application named `test`", function () { |
| 52 | buildCommand({ name: 'test' }); |
no outgoing calls
no test coverage detected
searching dependent graphs…