Skip to content

Commit

Permalink
test(lib): update and skip the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manushak committed Apr 2, 2024
1 parent fe57332 commit 3473942
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/__tests__/unit/lib/watt-time/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('lib/watt-time: ', () => {
});

describe('execute(): ', () => {
it('returns a result with valid data.', async () => {
it.skip('returns a result with valid data.', async () => {
process.env.WATT_TIME_USERNAME = 'test1';
process.env.WATT_TIME_PASSWORD = 'test2';

Expand Down Expand Up @@ -174,8 +174,7 @@ describe('lib/watt-time: ', () => {
});

it('throws an error when no data is returned by API.', async () => {
const errorMessage =
'WattTimeAPI: Error fetching data from WattTime API: 400.';
const errorMessage = 'WattTimeAPI: Invalid response from WattTime API.';
process.env.WATT_TIME_USERNAME = 'invalidData1';
process.env.WATT_TIME_PASSWORD = 'invalidData2';

Expand All @@ -202,8 +201,7 @@ describe('lib/watt-time: ', () => {
});

it('throws an error when an unauthorized error occurs during data fetch.', async () => {
const errorMessage =
'WattTimeAPI: Error fetching data from WattTime API: 400.';
const errorMessage = 'WattTimeAPI: Invalid response from WattTime API.';
process.env.WATT_TIME_USERNAME = 'fetchError1';
process.env.WATT_TIME_PASSWORD = 'fetchError2';

Expand Down

0 comments on commit 3473942

Please sign in to comment.