Open
Conversation
Collaborator
tests/commands/channels/edit.test.ts
● channels:edit › shows list of options for a channel
expect(received).toContain(expected) // indexOf
Expected substring: "CNNInternational.us (CNN International, CNN, CNN Int)"
Received string: "
> channels:edit
> tsx scripts/commands/channels/edit.ts tests/__data__/output/channels.xml·
"
30 |
31 | function checkStdout(stdout: string) {
> 32 | expect(stdout).toContain('CNNInternational.us (CNN International, CNN, CNN Int)')
| ^
33 | expect(stdout).toContain('Type...')
34 | expect(stdout).toContain('Skip')
35 | expect(stdout).toContain("File 'tests/__data__/output/channels.xml' successfully saved")
at toContain (tests/commands/channels/edit.test.ts:32:18)
at Object.checkStdout (tests/commands/channels/edit.test.ts:25:9)
PASS tests/commands/epg/grab.test.ts (37.974 s)
PASS tests/commands/channels/lint.test.ts (17.504 s)
PASS tests/commands/channels/format.test.ts (8.837 s)
PASS tests/commands/guides/update.test.ts
PASS tests/commands/sites/update.test.ts
PASS tests/commands/channels/parse.test.ts
PASS tests/commands/api/generate.test.ts
PASS tests/commands/sites/init.test.ts
Test Suites: 2 failed, 8 passed, 10 total
Tests: 4 failed, 19 passed, 23 total
Snapshots: 0 total
Time: 109.288 s, estimated 110 s
Ran all test suites matching commands. |
Collaborator
Author
|
Everything should be working properly now. Test results (Windows 10): npm test --- commands
> test
> cross-env TZ=Pacific/Nauru npx jest --runInBand commands
PASS tests/commands/epg/grab.test.ts (46.617 s)
PASS tests/commands/channels/validate.test.ts (9.661 s)
PASS tests/commands/channels/lint.test.ts (11.402 s)
PASS tests/commands/sites/init.test.ts
PASS tests/commands/channels/edit.test.ts
PASS tests/commands/channels/parse.test.ts
PASS tests/commands/channels/format.test.ts (7.171 s)
PASS tests/commands/guides/update.test.ts
PASS tests/commands/api/generate.test.ts
PASS tests/commands/sites/update.test.ts
Test Suites: 10 passed, 10 total
Tests: 23 passed, 23 total
Snapshots: 0 total
Time: 94.113 s
Ran all test suites matching commands. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes:
with xmltv-idcolumn has been removed from the tableTest results: