Skip to content

Commit

Permalink
fix!: use kebab casing (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek committed Jul 23, 2023
1 parent e39dcca commit 8439643
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/index.test.ts
Expand Up @@ -96,13 +96,13 @@ describe('crypto-cli', () => {
});
});

describe('with `--priceChange, --pc`', () => {
describe('with `--price-change, --pc`', () => {
describe('with a valid coin name', () => {
it('returns the price change percentage', async () => {
const results = await execa(CLI, [
'--price',
'bitcoin',
'--priceChange'
'--price-change'
]);

assert.include(results.stdout, 'Bitcoin: $');
Expand Down Expand Up @@ -160,13 +160,13 @@ describe('crypto-cli', () => {
});
});

describe('with `--athChange`', () => {
describe('with `--ath-change`', () => {
describe('with a valid coin name', () => {
it('returns the percentage from the all time high price', async () => {
const results = await execa(CLI, [
'--price',
'bitcoin',
'--athChange'
'--ath-change'
]);

assert.include(results.stdout, 'Bitcoin: $');
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Expand Up @@ -10,12 +10,12 @@ const cli = meow(
Options:
--price, --p - coin name
--priceChange, --pc - coin price change (%) in the past 24 hours
--price-change, --pc - coin price change (%) in the past 24 hours
--volume, --v - coin volume in the past 24 hours
--high - highest price sold in the past 24 hours
--low - lowest price sold in the past 24 hours
--ath - coin all time high price
--athChange, --athc - percent price change from ATH
--ath-change, --athc - percent price change from ATH
--version - current version of the crypto-cli tool
--save - export all coin data to CSV and/or JSON
Expand Down

0 comments on commit 8439643

Please sign in to comment.