test(docs-infra): fix test for preview server's `GithubPullRequests` (#25671)
PR Close #25671
This commit is contained in:
parent
b31c8b6063
commit
c8c8436e58
|
@ -147,7 +147,7 @@ describe('GithubPullRequests', () => {
|
|||
it('should resolve with the data returned from GitHub', done => {
|
||||
const expected: any = [{ sha: 'ABCDE', filename: 'a/b/c'}, { sha: '12345', filename: 'x/y/z' }];
|
||||
githubApi.get.and.callFake(() => Promise.resolve(expected));
|
||||
prs.fetch(42).then(data => {
|
||||
prs.fetchFiles(42).then(data => {
|
||||
expect(data).toEqual(expected);
|
||||
done();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue