chore: add jest global variables (#42573)

This commit is contained in:
Huyen Nguyen
2021-06-20 14:14:42 +07:00
committed by GitHub
parent 42e8b2247e
commit 2c16234853
82 changed files with 8 additions and 114 deletions

View File

@ -1,4 +1,3 @@
/* global expect */
import { ensureLowerCaseEmail } from './User-Identity';
test('returns lowercase email when one exists', () => {

View File

@ -1,5 +1,3 @@
/* global it expect */
import { getFallbackFrontEndDate } from '../boot/certificate';
import { fullStackChallenges } from './fixtures';

View File

@ -1,4 +1,3 @@
/* global describe xdescribe it expect jest */
import { first, find } from 'lodash';
import {

View File

@ -1,4 +1,3 @@
/* global jest*/
import { isEqual } from 'lodash';
import { isEmail } from 'validator';

View File

@ -1,4 +1,3 @@
/* global describe it expect jest */
import { mockReq as mockRequest, mockRes } from '../boot_tests/challenge.test';
import jwt from 'jsonwebtoken';

View File

@ -1,4 +1,3 @@
/* global describe expect it */
import moment from 'moment-timezone';
import { dayCount } from './date-utils';

View File

@ -1,7 +1,4 @@
/* eslint-disable camelcase */
/* global describe it expect */
/* global jest*/
import axios from 'axios';
import keys from '../../../../config/secrets';
import {

View File

@ -1,4 +1,3 @@
/* global describe it expect */
import {
getAccessTokenFromRequest,
errorTypes,

View File

@ -1,4 +1,3 @@
/* global describe beforeEach expect it jest */
import inMemoryCache from './in-memory-cache';
describe('InMemoryCache', () => {

View File

@ -1,5 +1,3 @@
/* global describe expect it jest */
const jwt = require('jsonwebtoken');
const { getReturnTo, normalizeParams } = require('./redirection');

View File

@ -1,4 +1,3 @@
/* global describe it expect jest */
import moment from 'moment-timezone';
import {