Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
test: remove redundant tests
Browse files Browse the repository at this point in the history
They test something already tested and they should actually test the
interplay between 'prompt' and 'applyAnswers' than the 'applyAnswers'
alone. This should be handled by integration tests in the future.
  • Loading branch information
honzajavorek committed Aug 13, 2018
1 parent f084871 commit 7b4e7cf
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/unit/init/applyAnswers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,10 @@ describe('init._applyAnswers()', () => {
const config = applyAnswers(createConfig(), { apiaryApiKey: '1234' });
assert.equal(config.custom.apiaryApiKey, '1234');
});
it('keeps the Apiary API key if already present in the config', () => {
const config = applyAnswers(Object(createConfig()), {
custom: { apiaryApiKey: '1234' }
});
assert.equal(config.custom.apiaryApiKey, '1234');
});
it('sets the Apiary API name if provided', () => {
const config = applyAnswers(createConfig(), { apiaryApiName: 'myproject' });
assert.equal(config.custom.apiaryApiName, 'myproject');
});
it('keeps the Apiary API name if already present in the config', () => {
const config = applyAnswers(Object(createConfig()), {
custom: { apiaryApiName: 'myproject' }
});
assert.equal(config.custom.apiaryApiName, 'myproject');
});
it('creates selected CI configuration if asked', () => {
applyAnswers(createConfig(), { createCI: 'wercker' }, { ci });
assert.isTrue(ci.wercker.calledOnce);
Expand Down

0 comments on commit 7b4e7cf

Please sign in to comment.