st-cc
Version:
Stencil create component cli
15 lines • 737 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("./index");
describe('When getting questions', () => {
it('Should return all questions when no component name provided', () => {
const questions = index_1.getQuestions({ hasProvidedComponentName: false });
expect(questions.length).toEqual(index_1.QUESTIONS.length);
});
it('Should remove first item when component name provided', () => {
const questions = index_1.getQuestions({ hasProvidedComponentName: true });
expect(questions.length).toEqual(index_1.QUESTIONS.length - 1);
expect(questions[0]).toEqual(index_1.QUESTIONS[1]);
});
});
//# sourceMappingURL=questions.spec.js.map