-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
258 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,7 @@ notes.md | |
frontend/packrd/packed-packr.go | ||
.idea/ | ||
node_modules/ | ||
node_modules | ||
yarn.lock | ||
|
||
frontend/app/coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
describe('Create User', () => { | ||
it('it creates a user', () => { | ||
const person: Cypress.Person = { | ||
owner_pubkey: "test_pubkey", | ||
owner_alias: "test_research", | ||
unique_name: "test_unique_name", | ||
description: "this is a test", | ||
tags: [], | ||
img: "", | ||
unlisted: false, | ||
deleted: false, | ||
owner_route_hint: "", | ||
owner_contact_key: "", | ||
price_to_meet: 0, | ||
twitter_confirmed: false, | ||
referred_by: 0, | ||
extras: {}, | ||
github_issues: {} | ||
} | ||
|
||
const user = cy.create_person(person) | ||
}) | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// describe('Create Workspace', () => { | ||
// it('passes', () => { | ||
// cy.request({ | ||
// method: 'POST', | ||
// url: `${hostname}/workspaces/`, | ||
// headers: { | ||
// 'x-user-token': `${user.authToken}` | ||
// }, | ||
// body: workspaces[0] | ||
// }).then((response) => { | ||
// const id = response.body.response.id; | ||
// }) | ||
// }) | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
declare namespace Cypress { | ||
interface Chainable { | ||
create_person(person: Person): CreatePersonResponse; | ||
} | ||
|
||
type RandomObject = { [key: string]: string }; | ||
|
||
type CreatePersonResponse = { | ||
jwt: string; | ||
user: Person; | ||
} | ||
|
||
type Person = { | ||
id?: number; | ||
uuid?: string; | ||
owner_pubkey: string; | ||
owner_alias: string; | ||
unique_name: string; | ||
description: string; | ||
tags: String[] | ||
img: string; | ||
created?: number; | ||
updated?: string; | ||
unlisted: boolean; | ||
deleted: boolean; | ||
last_login?: number; | ||
owner_route_hint: string; | ||
owner_contact_key: string; | ||
price_to_meet: number; | ||
new_ticket_time?: number; | ||
twitter_confirmed: boolean; | ||
referred_by: number; | ||
extras: RandomObject; | ||
github_issues: RandomObject; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import dotenv from 'dotenv'; | ||
dotenv.config(); | ||
|
||
import { HostName } from './objects/objects'; | ||
|
||
// @ts-check | ||
// @ts-check | ||
/// <reference types="cypress" /> | ||
|
||
Cypress.Commands.add('create_person', (person: Cypress.Person) => { | ||
cy.request({ | ||
method: 'POST', | ||
url: `http://${HostName}/person/test`, | ||
headers: {}, | ||
body: person | ||
}).then(res => { | ||
return res | ||
}); | ||
}); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["es5", "dom"], | ||
"types": ["cypress", "node"], | ||
"resolveJsonModule": true, | ||
"esModuleInterop": true | ||
}, | ||
"include": ["**/*.ts"] | ||
} |
Oops, something went wrong.