Skip to content

Commit 9547d26

Browse files
test(2018 day-12): test for parsing lines
1 parent 064a743 commit 9547d26

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

2018/day-12/helpers.test.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* eslint-env mocha */
2+
const expect = require('chai').expect
3+
const {
4+
parseLine
5+
} = require('./helpers')
6+
7+
describe('--- Day 12: Subterranean Sustainability ---', () => {
8+
describe('Helpers:', () => {
9+
describe('parseLine(input)', () => {
10+
it.skip('converts a line of the input into structured object', () => {
11+
const test = `..#.. => #`
12+
const expected = {
13+
id: '..#..',
14+
value: '#'
15+
}
16+
const actual = parseLine(test)
17+
expect(actual).to.deep.equal(expected)
18+
})
19+
})
20+
})
21+
})

0 commit comments

Comments
 (0)