From 94e2eb76cd4d0ef481accce21487b9d9c60b8ab0 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 8 Jan 2024 13:34:26 +0000 Subject: [PATCH] Fix tests --- tests/cli.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/cli.test.ts b/tests/cli.test.ts index aa68d3b..1b04e47 100644 --- a/tests/cli.test.ts +++ b/tests/cli.test.ts @@ -70,28 +70,28 @@ describe('subreddit', () => { }, 5000); test('GIVEN -s is supplied, EXPECT subreddit to be changed', async () => { - const result = await cli(['-s', 'horses'], '.'); + const result = await cli(['-s', 'pics'], '.'); const subreddit = result.stdout.split('\n') .find(x => x && x.length > 0 && x.split(' = ')[0] == 'Subreddit')! .split(' = ')[1]; - expect(subreddit).toBe('Horses'); + expect(subreddit).toBe('pics'); }, 5000); test('GIVEN --subreddit is supplied, EXPECT subreddit to be changed', async () => { - const result = await cli(['--subreddit', 'horses'], '.'); + const result = await cli(['--subreddit', 'pics'], '.'); const subreddit = result.stdout.split('\n') .find(x => x && x.length > 0 && x.split(' = ')[0] == 'Subreddit')! .split(' = ')[1]; - expect(subreddit).toBe('Horses'); + expect(subreddit).toBe('pics'); }, 5000); }); describe('sort', () => { - test('GIVEN --sort is not supplird, EXPECT sort to be defaulted', async () => { + test('GIVEN --sort is not supplied, EXPECT sort to be defaulted', async () => { const result = await cli(['-q'], '.'); const sortBy = result.stdout.split('\n') -- 2.45.2