Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
test: 💍 remove snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed May 16, 2020
1 parent 38055db commit 8cb2826
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 159 deletions.
138 changes: 0 additions & 138 deletions test/__snapshots__/cli.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,141 +30,3 @@ Will execute command:
git commit --message 'chore: 🤖 automated commit'
"
`;

exports[`git-cz 1`] = `
"Running in dry mode.
? Select the type of change that you're committing: (Use arrow keys or type to s
earch)
❯ 💍 test: Adding missing tests
🎸 feat: A new feature
🐛 fix: A bug fix
🤖 chore: Build process or auxiliary tool changes
✏️ docs: Documentation only changes
💡 refactor: A code change that neither fixes a bug or adds a feature
💄 style: Markup, white-space, formatting, missing semi-colons...
(Move up and down to reveal more choices)? Select the type of change that you're committing: 
💍 test: Adding missing tests
❯ 🎸 feat: A new feature
🐛 fix: A bug fix
🤖 chore: Build process or auxiliary tool changes
✏️ docs: Documentation only changes
💡 refactor: A code change that neither fixes a bug or adds a feature
💄 style: Markup, white-space, formatting, missing semi-colons...
(Move up and down to reveal more choices)? Select the type of change that you're committing: 🎸 feat: A new featur
e
? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 55 chars left
feat: ? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 54 chars left
feat: a? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 53 chars left
feat: ad? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 52 chars left
feat: add? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 51 chars left
feat: addi? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 50 chars left
feat: addin? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 49 chars left
feat: adding? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 48 chars left
feat: adding ? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 47 chars left
feat: adding a? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 46 chars left
feat: adding an? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 45 chars left
feat: adding an ? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 44 chars left
feat: adding an a? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 43 chars left
feat: adding an aw? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 42 chars left
feat: adding an awe? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 41 chars left
feat: adding an awes? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 40 chars left
feat: adding an aweso? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 39 chars left
feat: adding an awesom? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 38 chars left
feat: adding an awesome? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 37 chars left
feat: adding an awesome ? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 36 chars left
feat: adding an awesome f? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 35 chars left
feat: adding an awesome fe? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 34 chars left
feat: adding an awesome fea? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 33 chars left
feat: adding an awesome feat? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 32 chars left
feat: adding an awesome featu? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 31 chars left
feat: adding an awesome featur? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 30 chars left
feat: adding an awesome feature? Write a short, imperative mood description of the change: 
[-------------------------------------------------------------] 55 chars left
feat: adding an awesome feature
? Provide a longer description of the change:
  ? Provide a longer description of the change:
  t? Provide a longer description of the change:
  th? Provide a longer description of the change:
  the? Provide a longer description of the change:
  the ? Provide a longer description of the change:
  the f? Provide a longer description of the change:
  the fe? Provide a longer description of the change:
  the fea? Provide a longer description of the change:
  the feat? Provide a longer description of the change:
  the featu? Provide a longer description of the change:
  the featur? Provide a longer description of the change:
  the feature? Provide a longer description of the change:
  the feature ? Provide a longer description of the change:
  the feature d? Provide a longer description of the change:
  the feature de? Provide a longer description of the change:
  the feature des? Provide a longer description of the change:
  the feature desc? Provide a longer description of the change:
  the feature descr? Provide a longer description of the change:
  the feature descri? Provide a longer description of the change:
  the feature descrip? Provide a longer description of the change:
  the feature descript? Provide a longer description of the change:
  the feature descripti? Provide a longer description of the change:
  the feature descriptio? Provide a longer description of the change:
  the feature description? Provide a longer description of the change:
  the feature description
? List any breaking changes
 BREAKING CHANGE: ? List any breaking changes
 BREAKING CHANGE: S? List any breaking changes
 BREAKING CHANGE: So? List any breaking changes
 BREAKING CHANGE: Som? List any breaking changes
 BREAKING CHANGE: Some? List any breaking changes
 BREAKING CHANGE: Some ? List any breaking changes
 BREAKING CHANGE: Some B? List any breaking changes
 BREAKING CHANGE: Some Br? List any breaking changes
 BREAKING CHANGE: Some Bre? List any breaking changes
 BREAKING CHANGE: Some Brea? List any breaking changes
 BREAKING CHANGE: Some Break? List any breaking changes
 BREAKING CHANGE: Some Breaki? List any breaking changes
 BREAKING CHANGE: Some Breakin? List any breaking changes
 BREAKING CHANGE: Some Breaking? List any breaking changes
 BREAKING CHANGE: Some Breaking ? List any breaking changes
 BREAKING CHANGE: Some Breaking C? List any breaking changes
 BREAKING CHANGE: Some Breaking Ch? List any breaking changes
 BREAKING CHANGE: Some Breaking Cha? List any breaking changes
 BREAKING CHANGE: Some Breaking Chan? List any breaking changes
 BREAKING CHANGE: Some Breaking Chang? List any breaking changes
 BREAKING CHANGE: Some Breaking Change? List any breaking changes
 BREAKING CHANGE: Some Breaking Changes? List any breaking changes
 BREAKING CHANGE: Some Breaking Changes
? Issues this commit closes, e.g #123: ? Issues this commit closes, e.g #123: #? Issues this commit closes, e.g #123: #1? Issues this commit closes, e.g #123: #1
Will execute command:
git commit --message 'feat: 🎸 adding an awesome feature
the feature description
BREAKING CHANGE: 🧨 Some Breaking Changes
✅ Closes: #1'
"
`;
22 changes: 1 addition & 21 deletions test/cli.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const pkg = require('../package.json');
const {runCLI, keys} = require('./testUtils');
const {runCLI} = require('./testUtils');

test('git-cz --help', async () => {
const {getResult} = runCLI(['--help']);
Expand All @@ -24,23 +24,3 @@ test('git-cz --non-interactive', async () => {

expect(result).toMatchSnapshot();
});

test('git-cz', async () => {
const {getResult, write} = runCLI(['--dry-run']);

await write([
keys.down,
keys.enter,
'adding an awesome feature',
keys.enter,
'the feature description',
keys.enter,
'Some Breaking Changes',
keys.enter,
'#1'
]);

const result = await getResult();

expect(result).toMatchSnapshot();
});

0 comments on commit 8cb2826

Please sign in to comment.