Fix linter errors and warnings in sentry plugin

This commit is contained in:
Wojciech Adaszynski
2020-05-18 12:08:57 +02:00
parent 915167e950
commit 0783e07290
6 changed files with 39 additions and 11 deletions
@@ -14,13 +14,7 @@
* limitations under the License.
*/
import { SentryApiForwarder } from './sentry-api';
import axios from 'axios';
jest.mock('axios', () => ({
default: {
post: jest.fn(),
},
}));
describe('SentryApiForwarder', () => {
it('should generate headers based on token passed in constructor', () => {
const forwarder = new SentryApiForwarder('testtoken');