mirror of
https://github.com/datashard/snapshot.git
synced 2024-11-24 14: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 { defineConfig } = require("cypress");
|
||||||
const { functions } = require("./src/utils");
|
const { functions } = require("./src/utils");
|
||||||
|
|
||||||
|
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
snapshot: {
|
snapshot: {
|
||||||
snapshotPath: "cypress/snapshots/",
|
snapshotPath: "cypress/snapshots/",
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
'use strict'
|
|
||||||
|
|
||||||
// global cy, Cypress
|
// global cy, Cypress
|
||||||
|
const { functions } = require("./utils/index");
|
||||||
const { functions } = require('./utils/index')
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
register: functions.register,
|
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 */
|
describe("@datashard/snapshot", () => {
|
||||||
const api = require('.')
|
it("is an object", () => {
|
||||||
const la = require('lazy-ass')
|
la(is.object(api));
|
||||||
const is = require('check-more-types')
|
});
|
||||||
|
|
||||||
describe('@datashard/snapshot', () => {
|
it("has register", () => {
|
||||||
it('is an object', () => {
|
la(is.fn(api.register));
|
||||||
la(is.object(api))
|
});
|
||||||
})
|
});
|
||||||
|
|
||||||
it('has register', () => {
|
|
||||||
la(is.fn(api.register))
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
|
@ -20,9 +20,9 @@ module.exports = {
|
||||||
|
|
||||||
functions: {
|
functions: {
|
||||||
register: require("./functions/register"),
|
register: require("./functions/register"),
|
||||||
tasks: require("./functions/addTasks")
|
tasks: require("./functions/addTasks"),
|
||||||
},
|
},
|
||||||
tasks: {
|
tasks: {
|
||||||
readFileMaybe
|
readFileMaybe,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
const stripTransientIdAttributes = require("./stripTransientIdAttributes");
|
const stripTransientIdAttributes = require("./stripTransientIdAttributes");
|
||||||
const beautify = require("js-beautify").html;
|
const beautify = require("js-beautify").html;
|
||||||
|
|
||||||
|
|
||||||
module.exports = (el$) => {
|
module.exports = (el$) => {
|
||||||
const html = el$[0].outerHTML;
|
const html = el$[0].outerHTML;
|
||||||
const stripped = stripTransientIdAttributes(html);
|
const stripped = stripTransientIdAttributes(html);
|
||||||
|
|
Loading…
Reference in a new issue