Skip to content

Commit 2653148

Browse files
test(looping-a-triangle): add test
1 parent e8c4cea commit 2653148

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { loopATriangle } from '../looping-a-triangle'
2+
3+
const expectedOutput = '#\n##\n###\n####\n#####\n'
4+
5+
describe('loopATriangle', () => {
6+
test('draws a triangle of given height', () => {
7+
expect(loopATriangle(5)).toBe(expectedOutput)
8+
})
9+
})

0 commit comments

Comments
 (0)