Я пытался решить эту проблему для организации с открытым исходным кодом и внес sh свои изменения в GitHub. Но во время нажатия некоторые модульные тесты, которые запускаются автоматически, показывают сбой после того, как я реорганизовал их согласно изменениям в других файлах.
HeadlessChrome 78.0.3904 (Linux 0.0.0) Concept card backend API service should successfully fetch a concept card from the backend FAILED
Error: Expected spy success to have been called with:
[ [ Object({ explanation: Object({ html: 'test explanation 1', content_id: 'explanation_1' }), worked_examples: [ Object({ html: 'test worked example 1', content_id: 'worked_example_1' }), Object({ html: 'test worked example 2', content_id: 'worked_example_2' }) ], recorded_voiceovers: Object({ voiceovers_mapping: Object({ explanation: Object({ }), worked_example_1: Object({ }), worked_example_2: Object({ }) }) }) }) ] ]
but it was never called.
at <Jasmine>
at UserContext.eval (webpack:///./core/templates/dev/head/domain/skill/concept-card-backend-api.service.spec.ts?:118:32)
at ZoneDelegate.invoke (webpack:///./node_modules/zone.js/dist/zone.js?:390:26)
at ProxyZoneSpec.onInvoke (webpack:///./node_modules/zone.js/dist/proxy.js?:128:39)
HeadlessChrome 78.0.3904 (Linux 0.0.0): Executed 307 of 1431 (1 FAILED) (0 secs / 9.739 secs)
HeadlessChrome 78.0.3904 (Linux 0.0.0) Concept card backend API service should successfully fetch a concept card from the backend FAILED
Error: Expected spy success to have been called with:
[ [ Object({ explanation: Object({ html: 'test explanation 1', content_id: 'explanation_1' }), worked_examples: [ Object({ html: 'test worked example 1', content_id: 'worked_example_1' }), Object({ html: 'test worked example 2', content_id: 'worked_example_2' }) ], recorded_voiceovers: Object({ voiceovers_mapping: Object({ explanation: Object({ }), worked_example_1: Object({ }), worked_example_2: Object({ }) }) }) }) ] ]
but it was never called.
at <Jasmine>
at UserContext.eval (webpack:///./core/templates/dev/head/domain/skill/concept-card-backend-api.service.spec.ts?:118:32)
at ZoneDelegate.invoke (webpack:///./node_modules/zone.js/dist/zone.js?:390:26)
ERROR: 'Error communicating with server.'
HeadlessChrome 78.0.3904 (Linux 0.0.0): Executed 307 of 1431 (1 FAILED) (0 secs / 9.739 secs)
Может кто-нибудь сказать мне, как устранить эти ошибки.