diff options
| author | 2022-06-16 18:54:57 +0000 | |
|---|---|---|
| committer | 2022-06-16 18:54:57 +0000 | |
| commit | 44ba4e1ed9926f66795b8950c1464488b8756b2f (patch) | |
| tree | fa9b39627890645086cfae02969e308de1c6dc87 /packages/telemetry/test/session-event.test.js | |
| parent | 9c8a7c0b09db2fb6925929d4efe01d5ececbf08e (diff) | |
| download | astro-44ba4e1ed9926f66795b8950c1464488b8756b2f.tar.gz astro-44ba4e1ed9926f66795b8950c1464488b8756b2f.tar.zst astro-44ba4e1ed9926f66795b8950c1464488b8756b2f.zip | |
[ci] format
Diffstat (limited to '')
| -rw-r--r-- | packages/telemetry/test/session-event.test.js | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/packages/telemetry/test/session-event.test.js b/packages/telemetry/test/session-event.test.js index 07b214c30..5702f5fa5 100644 --- a/packages/telemetry/test/session-event.test.js +++ b/packages/telemetry/test/session-event.test.js @@ -415,11 +415,7 @@ describe('Session event', () => { it('optional/conditional integrations', () => { const config = { srcDir: 1, - integrations: [ - null, - undefined, - { name: "example-integration" } - ] + integrations: [null, undefined, { name: 'example-integration' }], }; const [{ payload }] = events.eventCliSession( { @@ -428,18 +424,14 @@ describe('Session event', () => { }, config ); - expect(payload.config.integrations).deep.equal(["example-integration"]); + expect(payload.config.integrations).deep.equal(['example-integration']); expect(payload.optionalIntegrations).to.equal(2); - }); - + }); + it('falsy integrations', () => { const config = { srcDir: 1, - integrations: [ - null, - undefined, - false - ] + integrations: [null, undefined, false], }; const [{ payload }] = events.eventCliSession( { |
