Add tests for some archive snippets
This commit is contained in:
@ -4,3 +4,9 @@ const {isArmstrongNumber} = require('./_30s.js');
|
||||
test('isArmstrongNumber is a Function', () => {
|
||||
expect(isArmstrongNumber).toBeInstanceOf(Function);
|
||||
});
|
||||
test('isArmstrongNumber returns true', () => {
|
||||
expect(isArmstrongNumber(1634)).toBeTruthy();
|
||||
});
|
||||
test('isArmstrongNumber returns false', () => {
|
||||
expect(isArmstrongNumber(56)).toBeFalsy();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user