mirror of
https://github.com/datashard/snapshot.git
synced 2025-05-17 12:47:22 +00:00
rename tests and remove spec test
This commit is contained in:
parent
5a1a5981d8
commit
5dae644e87
3 changed files with 15 additions and 20 deletions
|
@ -1,6 +1,6 @@
|
||||||
/* eslint-env mocha */
|
/* eslint-env mocha */
|
||||||
/* global cy */
|
/* global cy */
|
||||||
describe("@cypress/snapshot", () => {
|
describe("@datashard/snapshot", () => {
|
||||||
context("simple types", () => {
|
context("simple types", () => {
|
||||||
it("works with objects", () => {
|
it("works with objects", () => {
|
||||||
cy.fixture("File2").snapshot({
|
cy.fixture("File2").snapshot({
|
||||||
|
@ -23,11 +23,19 @@ describe("@cypress/snapshot", () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("works with arrays", () => {
|
it(
|
||||||
cy.wrap([1, 2, 3]).snapshot({
|
"works with arrays",
|
||||||
snapshotPath: "cypress/snapshots",
|
{
|
||||||
snapshotName: "Arrays",
|
env: {
|
||||||
});
|
SNAPSHOT_UPDATE: true,
|
||||||
});
|
},
|
||||||
|
},
|
||||||
|
() => {
|
||||||
|
cy.wrap([1, 2, 3, 4]).snapshot({
|
||||||
|
snapshotPath: "cypress/snapshots",
|
||||||
|
snapshotName: "Arrays",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
|
@ -1,13 +0,0 @@
|
||||||
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));
|
|
||||||
});
|
|
||||||
|
|
||||||
it("has register", () => {
|
|
||||||
la(is.fn(api.register));
|
|
||||||
});
|
|
||||||
});
|
|
Loading…
Add table
Reference in a new issue