all repos

onasty @ b3a528af9e74a124dbb79687ebb116ce8a8c8e8c

a one-time notes service
6 files changed, 2 insertions(+), 103 deletions(-)
web: nuke all tests since they are not actually used (#215)

* web: nuke all tests since they are not actually used

* web: remove elm testing deps
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed by: GitHub noreply@github.com
Committed at: 2025-09-22 16:19:36 +0300
Parent: ffa0326
M .github/workflows/elm.yml

@@ -45,8 +45,3 @@ run: bunx elm-review --ignore-dirs .elm-land

- name: elm-format run: bunx elm-format --validate src/ - - - - name: Tests - run: bunx elm-test-rs -
M web/elm.json

@@ -27,11 +27,7 @@ "elm/virtual-dom": "1.0.3"

} }, "test-dependencies": { - "direct": { - "elm-explorations/test": "2.2.0" - }, - "indirect": { - "elm/random": "1.0.0" - } + "direct": {}, + "indirect": {} } }
D

@@ -1,22 +0,0 @@

-module UnitTests.Data.Credentiala exposing (suite) - -import Data.Credentials -import Expect -import Json.Decode as Json -import Test exposing (Test, describe, test) - - -suite : Test -suite = - describe "Data.Credentials" - [ test "decode" <| - \_ -> - """ - { - "access_token": "access.token.value", - "refresh_token": "refresh-token-value" - } - """ - |> Json.decodeString Data.Credentials.decode - |> Expect.ok - ]
D

@@ -1,17 +0,0 @@

-module UnitTests.Data.Error exposing (suite) - -import Data.Error -import Expect -import Json.Decode as Json -import Test exposing (Test, describe, test) - - -suite : Test -suite = - describe "Data.Error" - [ test "decode" <| - \_ -> - """ {"message": "some kind of an error"} """ - |> Json.decodeString Data.Error.decode - |> Expect.ok - ]
D

@@ -1,24 +0,0 @@

-module UnitTests.Data.Me exposing (suite) - -import Data.Me -import Expect -import Json.Decode as Json -import Test exposing (Test, describe, test) - - -suite : Test -suite = - describe "Data.Me" - [ test "decode" <| - \_ -> - """ - { - "email": "admin@onasty.local", - "created_at": "2025-06-06T19:44:17.370068Z", - "last_login_at": "2025-07-06T17:15:23.380068Z", - "notes_created": 42 - } - """ - |> Json.decodeString Data.Me.decode - |> Expect.ok - ]
D

@@ -1,29 +0,0 @@

-module UnitTests.Data.Note exposing (suite) - -import Data.Note -import Expect -import Json.Decode as D -import Test exposing (Test, describe, test) - - -suite : Test -suite = - describe "Data.Note" - [ test "decodeCreateResponse" - (\_ -> - """ {"slug":"the.note-slug"} """ - |> D.decodeString Data.Note.decodeCreateResponse - |> Expect.ok - ) - , test "decodeMetadata" - (\_ -> - """ - { - "created_at": "2023-10-01T12:00:00Z", - "has_password": false - } - """ - |> D.decodeString Data.Note.decodeMetadata - |> Expect.ok - ) - ]