Fix linter errors and warnings in sentry plugin
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user