@@ -46,14 +46,14 @@ describe('--- Day 3: No Matter How You Slice It ---', () => {
4646 describe ( 'makeClaim(claim)' , ( ) => {
4747 it ( 'marks the points on the cloth with the claim ID' , ( ) => {
4848 const claim = parseClaim ( claims [ 0 ] )
49- let result = makeClaim ( claim )
49+ const result = makeClaim ( claim )
5050 expect ( result [ 1 ] [ 1 ] ) . to . equal ( undefined )
5151 expect ( result [ 3 ] [ 2 ] ) . to . deep . equal ( [ 123 ] )
5252 expect ( result [ 7 ] [ 5 ] ) . to . deep . equal ( [ 123 ] )
5353 } )
5454
5555 it ( 'marks the points that are overlapped' , ( ) => {
56- let testClaims = claims . map ( parseClaim )
56+ const testClaims = claims . map ( parseClaim )
5757 let result = _cloth
5858 for ( let x = 1 ; x < claims . length ; x ++ ) {
5959 result = makeClaim ( testClaims [ x ] )
@@ -91,7 +91,7 @@ describe('--- Day 3: No Matter How You Slice It ---', () => {
9191
9292 describe ( 'countConflicts()' , ( ) => {
9393 it ( 'counts the number of points with conflicting claims' , ( ) => {
94- let testClaims = claims . map ( parseClaim )
94+ const testClaims = claims . map ( parseClaim )
9595 for ( let x = 1 ; x < claims . length ; x ++ ) {
9696 makeClaim ( testClaims [ x ] )
9797 }
@@ -105,7 +105,7 @@ describe('--- Day 3: No Matter How You Slice It ---', () => {
105105 describe ( 'Part 2' , ( ) => {
106106 describe ( 'findNonOverlappingClaims()' , ( ) => {
107107 it ( 'locates the first claim that doesn\'t have overlapping claims' , ( ) => {
108- let testClaims = claims . map ( parseClaim )
108+ const testClaims = claims . map ( parseClaim )
109109 for ( let x = 1 ; x < claims . length ; x ++ ) {
110110 makeClaim ( testClaims [ x ] )
111111 }
0 commit comments