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 033ccb1 commit 57638deCopy full SHA for 57638de
2021/day-02/navigate.test.js
@@ -3,8 +3,8 @@ const { expect } = require('chai')
3
const { move, navigate } = require('./navigate')
4
5
const TestRoute = [
6
- ['down', 5],
7
['forward', 5],
+ ['down', 5],
8
['forward', 8],
9
['up', 3],
10
['down', 8],
@@ -37,12 +37,6 @@ describe('--- Day 2: Dive! ---', () => {
37
move({ x: 0, d: 0 }, 'garbage', 5)
38
}).to.throw('Direction garbage is unsupported')
39
})
40
- // it('defaults to 0,0 as the origin when not provided', () => {
41
- // expect(move({}, 'up', 8)).to.deep.equal({
42
- // x: 0,
43
- // d: -8
44
- // })
45
46
47
describe('navigate()', () => {
48
it('takes a series of directions and follows the route', () => {
0 commit comments