-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
228 additions
and
253 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { consoleLog, throwError } from './main'; | ||
|
||
describe('console.log()', () => { | ||
test('from sources', () => { | ||
consoleLog(); | ||
expect(true).toBe(true); | ||
}); | ||
test('from tests', () => { | ||
console.log('WITHIN TEST'); | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
|
||
describe('throw new Error()', () => { | ||
test('throws from sources', () => { | ||
throwError(); | ||
expect(true).toBe(true); | ||
}); | ||
test('throws from tests', () => { | ||
throw new Error('WITHIN TEST'); | ||
expect(true).toBe(true); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export function consoleLog() { | ||
console.log('WITHIN SOURCE'); | ||
} | ||
|
||
export function throwError() { | ||
throw new Error('WITHIN SOURCE'); | ||
} |
Oops, something went wrong.