Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init test #66

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build

on:
workflow_dispatch:
# pull_request:
# branches:
# - main
pull_request:
branches:
- main

jobs:
build:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Update

on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
Expand Down
27 changes: 27 additions & 0 deletions __tests__/CreateAccount.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import Gun from "gun/gun";
import SEA from 'gun/sea';
import { IGunInstance, IGunInstanceRoot, IGunUserInstance, ISEA } from 'gun/types';

const gun = Gun({
radisk: true,
localStorage: false
});

type GunDB = {
gun: IGunInstance<any>,
user: IGunUserInstance<any, any, any, IGunInstanceRoot<any, IGunInstance<any>>>,
SEA: ISEA,
}

const GunDB: GunDB = {
gun: gun,
user: gun.user(),
SEA: SEA,
}

test('first GunDb test', async () => {
GunDB.user.create('12345678', '12345678', (ack: any) => {
expect(ack.err).toBe(ack.err !== "User already created!");
expect(ack.err).toBe(ack.err !== "Password too short!");
});
})
160 changes: 0 additions & 160 deletions app/(login)/CreateAccountScreen.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions app/(login)/GroupScreen.tsx

This file was deleted.

89 changes: 0 additions & 89 deletions app/(login)/LoginScreen.tsx

This file was deleted.

80 changes: 0 additions & 80 deletions app/(login)/styles.tsx

This file was deleted.

File renamed without changes.
File renamed without changes.
Loading
Loading