test(docs-infra): fix test for preview server's `GithubPullRequests` (#25671)

PR Close #25671
This commit is contained in:
George Kalpakas 2018-08-27 14:59:39 +03:00 committed by Kara Erickson
parent b31c8b6063
commit c8c8436e58
1 changed files with 1 additions and 1 deletions

View File

@ -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();
});