Skip to content

tests: only test changed packages #1194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Oct 20, 2022
6 changes: 3 additions & 3 deletions Project-Euler/test/Problem044.test.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { problem44 } from '../Problem044.js'

describe('checking nth prime number', () => {
it('should be invalid input if number is negative', () => {
test('should be invalid input if number is negative', () => {
expect(() => problem44(-3)).toThrowError('Invalid Input')
})
it('should be invalid input if number is 0', () => {
test('should be invalid input if number is 0', () => {
expect(() => problem44(0)).toThrowError('Invalid Input')
})
// Project Euler Condition Check
test('if the number is greater or equal to 1', () => {
expect(problem44(1)).toBe(5482660)
})
// Project Euler Second Value for Condition Check
test('if the number is greater or equal to 2167', () => {
test.skip('if the number is greater or equal to 2167', () => {
expect(problem44(2167)).toBe(8476206790)
})
})