fix lint.

This commit is contained in:
Nawaz Dhandala 2021-07-08 20:42:44 +01:00
parent 622a0b1ab7
commit 4cef3c2ed3
4 changed files with 12 additions and 13 deletions

View File

@ -161,7 +161,6 @@ export const Validate = {
},
isValidNumber(number) {
// eslint-disable-next-line
if (number.match('^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-s./0-9]*$')) {
return true;
}

View File

@ -54,8 +54,8 @@ describe('Enterprise Project API', () => {
utils.generateRandomString()
);
await init.pageClick(page, 'button[type=submit]');
// eslint-disable-next-line no-undef
localStorageData = await page.evaluate(() => {
const localStorageData = await page.evaluate(() => {
const json = {};
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i);
@ -63,7 +63,7 @@ describe('Enterprise Project API', () => {
}
return json;
});
// eslint-disable-next-line no-undef
localStorageData.should.have.property('project');
done();
},

View File

@ -59,8 +59,8 @@ describe('Project API', () => {
visible: true,
timeout: init.timeout,
});
// eslint-disable-next-line no-undef
localStorageData = await page.evaluate(() => {
const localStorageData = await page.evaluate(() => {
const json = {};
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i);
@ -68,7 +68,7 @@ describe('Project API', () => {
}
return json;
});
// eslint-disable-next-line no-undef
localStorageData.should.have.property('project');
done();

View File

@ -64,8 +64,8 @@ describe('Project API', () => {
init.pageClick(page, 'button[type=submit]'),
page.waitForNavigation(),
]);
// eslint-disable-next-line no-undef
localStorageData = await page.evaluate(() => {
const localStorageData = await page.evaluate(() => {
const json = {};
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i);
@ -73,7 +73,7 @@ describe('Project API', () => {
}
return json;
});
// eslint-disable-next-line no-undef
localStorageData.should.have.property('project');
done();
@ -104,8 +104,8 @@ describe('Project API', () => {
await element.click();
await page.waitForNavigation();
// eslint-disable-next-line no-undef
localStorageData = await page.evaluate(() => {
const localStorageData = await page.evaluate(() => {
const json = {};
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i);
@ -113,7 +113,7 @@ describe('Project API', () => {
}
return json;
});
// eslint-disable-next-line no-undef
localStorageData.should.have.property('project');
done();