From dc1290ec04ad73128bbd734ea1e1885a6f2f3b2c Mon Sep 17 00:00:00 2001 From: Joshua Date: Thu, 11 Apr 2024 18:36:18 +0200 Subject: [PATCH] update tests --- .../complex-types/works-based-on-fixtures.json | 14 ++++++++++++++ .../works-with-more-complicated-Objects.json | 15 +++++++++++++++ .../simple-types/works-with-arrays.json | 0 .../simple-types/works-with-numbers.json | 3 +++ .../simple-types/works-with-objects.json | 4 ++++ .../simple-types/works-with-strings.json | 3 +++ 6 files changed, 39 insertions(+) create mode 100644 cypress/fixtures/datashard-snapshot/complex-types/works-based-on-fixtures.json create mode 100644 cypress/fixtures/datashard-snapshot/complex-types/works-with-more-complicated-Objects.json rename {undefined/cypress/fixtures/snapshots => cypress/fixtures}/datashard-snapshot/simple-types/works-with-arrays.json (100%) create mode 100644 cypress/fixtures/datashard-snapshot/simple-types/works-with-numbers.json create mode 100644 cypress/fixtures/datashard-snapshot/simple-types/works-with-objects.json create mode 100644 cypress/fixtures/datashard-snapshot/simple-types/works-with-strings.json diff --git a/cypress/fixtures/datashard-snapshot/complex-types/works-based-on-fixtures.json b/cypress/fixtures/datashard-snapshot/complex-types/works-based-on-fixtures.json new file mode 100644 index 0000000..ac6239a --- /dev/null +++ b/cypress/fixtures/datashard-snapshot/complex-types/works-based-on-fixtures.json @@ -0,0 +1,14 @@ +{ + "jsonapi": { + "version": "2.0" + }, + "included": [ + { + "type": "users", + "id": "2", + "attributes": { + "name": "Test" + } + } + ] +} \ No newline at end of file diff --git a/cypress/fixtures/datashard-snapshot/complex-types/works-with-more-complicated-Objects.json b/cypress/fixtures/datashard-snapshot/complex-types/works-with-more-complicated-Objects.json new file mode 100644 index 0000000..0b48984 --- /dev/null +++ b/cypress/fixtures/datashard-snapshot/complex-types/works-with-more-complicated-Objects.json @@ -0,0 +1,15 @@ +{ + "status": 200, + "response": { + "array": [ + 0, + 1, + 2, + "4" + ], + "object": { + "with": "more details" + } + }, + "thisisnew": "wtf" +} \ No newline at end of file diff --git a/undefined/cypress/fixtures/snapshots/datashard-snapshot/simple-types/works-with-arrays.json b/cypress/fixtures/datashard-snapshot/simple-types/works-with-arrays.json similarity index 100% rename from undefined/cypress/fixtures/snapshots/datashard-snapshot/simple-types/works-with-arrays.json rename to cypress/fixtures/datashard-snapshot/simple-types/works-with-arrays.json diff --git a/cypress/fixtures/datashard-snapshot/simple-types/works-with-numbers.json b/cypress/fixtures/datashard-snapshot/simple-types/works-with-numbers.json new file mode 100644 index 0000000..7941fc3 --- /dev/null +++ b/cypress/fixtures/datashard-snapshot/simple-types/works-with-numbers.json @@ -0,0 +1,3 @@ +{ + "data": 42 +} \ No newline at end of file diff --git a/cypress/fixtures/datashard-snapshot/simple-types/works-with-objects.json b/cypress/fixtures/datashard-snapshot/simple-types/works-with-objects.json new file mode 100644 index 0000000..c65ca7b --- /dev/null +++ b/cypress/fixtures/datashard-snapshot/simple-types/works-with-objects.json @@ -0,0 +1,4 @@ +{ + "foo": "bar", + "Fizzy Drink": "Pop" +} \ No newline at end of file diff --git a/cypress/fixtures/datashard-snapshot/simple-types/works-with-strings.json b/cypress/fixtures/datashard-snapshot/simple-types/works-with-strings.json new file mode 100644 index 0000000..c36f355 --- /dev/null +++ b/cypress/fixtures/datashard-snapshot/simple-types/works-with-strings.json @@ -0,0 +1,3 @@ +{ + "data": "foo-bar" +} \ No newline at end of file