File tree Expand file tree Collapse file tree 4 files changed +26
-0
lines changed Expand file tree Collapse file tree 4 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ test
Original file line number Diff line number Diff line change 1+ export const part1 = ( input : string ) => {
2+ return input ;
3+ } ;
Original file line number Diff line number Diff line change 1+ import { readInput } from '../../utils' ;
2+
3+ import { part1 } from './part1' ;
4+
5+ describe ( 'Advent of Code 2021 - Day x' , ( ) => {
6+ let input : string ;
7+ beforeAll ( async ( ) => {
8+ input = await readInput ( __dirname + '/input' ) ;
9+ } ) ;
10+
11+ describe ( 'part 1' , ( ) => {
12+ it ( 'should output x ' , ( ) => {
13+ const test_input = 'test' ;
14+ expect ( part1 ( test_input ) ) . toBe ( 'test' ) ;
15+ } ) ;
16+
17+ it ( 'should output correct from input' , ( ) => {
18+ expect ( part1 ( input ) ) . toBe ( 'test' ) ;
19+ } ) ;
20+ } ) ;
21+ } ) ;
Original file line number Diff line number Diff line change 1+ test
You can’t perform that action at this time.
0 commit comments