Skip to content

Commit

Permalink
Switch to snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
elliot-nelson committed Apr 19, 2023
1 parent 6652b19 commit 5afc844
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ describe('HttpBuildCacheProvider', () => {
method: 'GET',
redirect: 'follow'
});
expect(terminalBuffer.getWarningOutput()).toEqual(
'Error getting cache entry: Error: Credentials for https://buildcache.example.acme.com/ have not been provided.[n]In CI, verify that RUSH_BUILD_CACHE_CREDENTIAL contains a valid Authorization header value.[n][n]For local developers, run:[n][n] rush update-cloud-credentials --interactive[n][n]'
expect(terminalBuffer.getWarningOutput()).toMatchInlineSnapshot(
`"Error getting cache entry: Error: Credentials for https://buildcache.example.acme.com/ have not been provided.[n]In CI, verify that RUSH_BUILD_CACHE_CREDENTIAL contains a valid Authorization header value.[n][n]For local developers, run:[n][n] rush update-cloud-credentials --interactive[n][n]"`
);
});
});
Expand Down

0 comments on commit 5afc844

Please sign in to comment.