mirror of
https://github.com/datashard/snapshot.git
synced 2024-11-21 21:52:28 +00:00
chore: remove eslint for now and run prettier over files
This commit is contained in:
parent
2ce0c6d92b
commit
dccbde9fe4
6 changed files with 16 additions and 36 deletions
12
.eslintrc
12
.eslintrc
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"extends": [
|
||||
"plugin:cypress-dev/general"
|
||||
],
|
||||
"rules": {
|
||||
"comma-dangle": "off",
|
||||
"no-debugger": "warn"
|
||||
},
|
||||
"env": {
|
||||
"node": true
|
||||
}
|
||||
}
|
|
@ -1,7 +1,6 @@
|
|||
const { defineConfig } = require("cypress");
|
||||
const { functions } = require("./src/utils");
|
||||
|
||||
|
||||
module.exports = defineConfig({
|
||||
snapshot: {
|
||||
snapshotPath: "cypress/snapshots/",
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
// global cy, Cypress
|
||||
|
||||
const { functions } = require('./utils/index')
|
||||
const { functions } = require("./utils/index");
|
||||
|
||||
module.exports = {
|
||||
register: functions.register,
|
||||
tasks: functions.tasks
|
||||
}
|
||||
tasks: functions.tasks,
|
||||
};
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
'use strict'
|
||||
const api = require(".");
|
||||
const la = require("lazy-ass");
|
||||
const is = require("check-more-types");
|
||||
|
||||
/* eslint-env mocha */
|
||||
const api = require('.')
|
||||
const la = require('lazy-ass')
|
||||
const is = require('check-more-types')
|
||||
describe("@datashard/snapshot", () => {
|
||||
it("is an object", () => {
|
||||
la(is.object(api));
|
||||
});
|
||||
|
||||
describe('@datashard/snapshot', () => {
|
||||
it('is an object', () => {
|
||||
la(is.object(api))
|
||||
})
|
||||
|
||||
it('has register', () => {
|
||||
la(is.fn(api.register))
|
||||
})
|
||||
})
|
||||
it("has register", () => {
|
||||
la(is.fn(api.register));
|
||||
});
|
||||
});
|
||||
|
|
|
@ -20,9 +20,9 @@ module.exports = {
|
|||
|
||||
functions: {
|
||||
register: require("./functions/register"),
|
||||
tasks: require("./functions/addTasks")
|
||||
tasks: require("./functions/addTasks"),
|
||||
},
|
||||
tasks: {
|
||||
readFileMaybe
|
||||
readFileMaybe,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
const stripTransientIdAttributes = require("./stripTransientIdAttributes");
|
||||
const beautify = require("js-beautify").html;
|
||||
|
||||
|
||||
module.exports = (el$) => {
|
||||
const html = el$[0].outerHTML;
|
||||
const stripped = stripTransientIdAttributes(html);
|
||||
|
|
Loading…
Reference in a new issue