Skip to content

Commit 57638de

Browse files
test: correct test data sequeance
1 parent 033ccb1 commit 57638de

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

2021/day-02/navigate.test.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ const { expect } = require('chai')
33
const { move, navigate } = require('./navigate')
44

55
const TestRoute = [
6-
['down', 5],
76
['forward', 5],
7+
['down', 5],
88
['forward', 8],
99
['up', 3],
1010
['down', 8],
@@ -37,12 +37,6 @@ describe('--- Day 2: Dive! ---', () => {
3737
move({ x: 0, d: 0 }, 'garbage', 5)
3838
}).to.throw('Direction garbage is unsupported')
3939
})
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-
// })
4640
})
4741
describe('navigate()', () => {
4842
it('takes a series of directions and follows the route', () => {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy