We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 064a743 commit 9547d26Copy full SHA for 9547d26
2018/day-12/helpers.test.js
@@ -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