rename fillerWords to preprocessors #8
Annotations
11 errors
|
🏃 Run tests:
src/Parser/Parser.ts#L73
TypeError: dateStr.trim is not a function
❯ Parser.attempt src/Parser/Parser.ts:73:23
❯ Parser.fromStringFunction [as fromString] src/fromString/fromString.ts:10:27
❯ src/fromString/fromString.spec.ts:113:27
|
🏃 Run tests:
src/Parser/Parser.ts#L73
TypeError: dateStr.trim is not a function
❯ Parser.attempt src/Parser/Parser.ts:73:23
❯ Parser.fromStringFunction [as fromString] src/fromString/fromString.ts:10:27
❯ src/fromString/fromString.spec.ts:119:27
|
🏃 Run tests:
src/Parser/Parser.ts#L73
TypeError: Cannot read properties of undefined (reading 'trim')
❯ Parser.attempt src/Parser/Parser.ts:73:23
❯ Parser.fromStringFunction [as fromString] src/fromString/fromString.ts:10:27
❯ src/fromString/fromString.spec.ts:124:27
|
🏃 Run tests:
src/Parser/Parser.ts#L73
TypeError: dateStr.trim is not a function
❯ Parser.attempt src/Parser/Parser.ts:73:23
❯ Parser.fromStringFunction [as fromString] src/fromString/fromString.ts:10:27
❯ src/fromString/fromString.spec.ts:130:27
|
🏃 Run tests:
src/formats/fuzzy/fuzzy.spec.ts#L20
AssertionError: expected { year: 1929, month: 3, day: 29 } to deeply equal { year: 1929, month: 10, day: 29 }
- Expected
+ Received
Object {
"day": 29,
- "month": 10,
+ "month": 3,
"year": 1929,
}
❯ src/formats/fuzzy/fuzzy.spec.ts:20:20
|
🏃 Run tests:
test-fixtures/testDates.ts#L18
AssertionError: expected { year: 2020, month: 10, day: 9, …(4) } to match object { year: 2020, month: 10, day: 6, …(4) }
- Expected
+ Received
Object {
- "day": 6,
+ "day": 9,
"hour": 17,
"minute": 41,
"month": 10,
- "offset": -540,
+ "offset": 0,
"second": 28,
"year": 2020,
}
❯ test-fixtures/testDates.ts:18:26
|
🏃 Run tests:
test-fixtures/testDates.ts#L18
AssertionError: expected { year: 2020, month: 10, day: 6, …(3) } to match object { year: 2020, month: 10, day: 6, …(4) }
- Expected
+ Received
Object {
"day": 6,
"hour": 17,
"minute": 41,
"month": 10,
- "offset": 540,
"second": 28,
"year": 2020,
}
❯ test-fixtures/testDates.ts:18:26
|
🏃 Run tests:
src/formats/twitter/twitter.spec.ts#L16
AssertionError: expected { year: undefined, month: 4, …(4) } to deeply equal { month: 4, day: 9, hour: 12, …(4) }
- Expected
+ Received
Object {
"day": 9,
"hour": 12,
"minute": 53,
"month": 4,
- "offset": 0,
"second": 54,
- "year": 2010,
+ "year": undefined,
}
❯ src/formats/twitter/twitter.spec.ts:16:20
|
🏃 Run tests:
src/formats/twitter/twitter.spec.ts#L29
AssertionError: expected { year: 130, month: 4, day: 16, …(3) } to deeply equal { month: 4, day: 16, hour: 22, …(4) }
- Expected
+ Received
Object {
"day": 16,
"hour": 22,
"minute": 53,
"month": 4,
- "offset": -90,
"second": 54,
- "year": 2017,
+ "year": 130,
}
❯ src/formats/twitter/twitter.spec.ts:29:20
|
🏃 Run tests:
test-fixtures/testDates.ts#L18
AssertionError: expected { year: 2016 } to match object { year: 2016, month: 9, day: 24 }
- Expected
+ Received
Object {
- "day": 24,
- "month": 9,
"year": 2016,
}
❯ test-fixtures/testDates.ts:18:26
|
Loading