mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
fix lint.
This commit is contained in:
parent
622a0b1ab7
commit
4cef3c2ed3
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
},
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user