Skip to content

Commit

Permalink
Add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenyeargin committed Sep 15, 2023
1 parent baa883e commit 5742eaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/common/TestBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ function setupEnv(settings) {
function setupNock(settings) {
nock('https://play.grafana.org')
.get('/render/d-solo/97PlYC7Mk/?panelId=3&width=1000&height=500&from=now-6h&to=now')
.matchHeader('authorization', 'Bearer xxxxxxxxxxxxxxxxxxxxxxxxx')
.replyWithFile(200, `${__dirname}/../fixtures/v8/dashboard-grafana-play.png`);

nock('https://graf.s3.us-west-2.amazonaws.com')
Expand All @@ -134,6 +135,7 @@ function setupNock(settings) {

nock('https://play.grafana.org')
.get('/api/dashboards/uid/97PlYC7Mk')
.matchHeader('authorization', 'Bearer xxxxxxxxxxxxxxxxxxxxxxxxx')
.replyWithFile(200, `${__dirname}/../fixtures/v8/dashboard-grafana-play.json`);

nock.disableNetConnect();
Expand Down

0 comments on commit 5742eaf

Please sign in to comment.