Skip to content

Commit 1242e5a

Browse files
author
{Harshit Malpotra}
committed
test: added alias for the import
1 parent 07f3699 commit 1242e5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Recursive/test/EucledianGCD.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { euclideanGCDIterative } from "../EucledianGCD";
1+
import { euclideanGCDIterative as GCD } from "../EucledianGCD";
22

33
describe('EucledianGCD', () => {
44
it('the GCD of 2 and 3 should be 1', () => {
5-
expect(euclideanGCDIterative(2,3)).toBe(1);
5+
expect(GCD(2,3)).toBe(1);
66
})
77
it('the GCD of 2 and 8 should be 2', () => {
8-
expect(euclideanGCDIterative(2,8)).toBe(2);
8+
expect(GCD(2,8)).toBe(2);
99
})
1010
it('the GCD of 1 and 100 should be 1', () => {
11-
expect(euclideanGCDIterative(1,100)).toBe(1);
11+
expect(GCD(1,100)).toBe(1);
1212
})
1313
})

0 commit comments

Comments
 (0)