You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: failing test "publishDocument .. createDocument" #4014
Problem:
"publishDocument .. createDocument" tests fail on "Insiders" CI job. #4013
Solution:
- Adjust the tests to show what was passed.
- Create the `TextDocument` in `beforeEach` instead of `before()`. Don't bother to "show" it.
Before:
1) publishDocument
createDocument
createDocument API returns successfully:
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
(0, assert_1.default)(client.createDocument.calledWith(fakeCreateRequest))
+ expected - actual
-false
+true
at Context.<anonymous> (src/test/ssmDocument/commands/publishDocument.test.ts:84:19)
After:
+ actual - expected ... Lines skipped
[
[
{
+ Content: '',
- Content: 'foo',
DocumentFormat: 'JSON',
...
}
]
]
0 commit comments