diff --git a/Beginner/pigLatin/test.js b/Beginner/pigLatin/test.js index e69de29..0a4c613 100644 --- a/Beginner/pigLatin/test.js +++ b/Beginner/pigLatin/test.js @@ -0,0 +1,17 @@ +const pigLatin = require('./index-START'); + +test('pigLatin is a function', () => { + expect(typeof pigLatin).toEqual('function'); +}); + +test('For words that begin with consonant sounds, "pig" = "igpay"', () => { + expect(pigLatin('pig')).toEqual('igpay') +}); + +test('For words that begin with consonant clusters, "glove" = "oveglay"', () => { + expect(pigLatin('glove')).toEqual('oveglay') +}); + +test('For words that begin with vowel sounds, "explain" = "explainway”', () => { + expect(pigLatin('explain')).toEqual('explainway') +});