mirror of
https://github.com/datashard/snapshot.git
synced 2025-05-02 23:17:21 +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 */
|
||||
/* global cy */
|
||||
describe("@cypress/snapshot", () => {
|
||||
describe("@datashard/snapshot", () => {
|
||||
context("simple types", () => {
|
||||
it("works with objects", () => {
|
||||
cy.fixture("File2").snapshot({
|
||||
|
@ -23,11 +23,19 @@ describe("@cypress/snapshot", () => {
|
|||
});
|
||||
});
|
||||
|
||||
it("works with arrays", () => {
|
||||
cy.wrap([1, 2, 3]).snapshot({
|
||||
snapshotPath: "cypress/snapshots",
|
||||
snapshotName: "Arrays",
|
||||
});
|
||||
});
|
||||
it(
|
||||
"works with 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