-
Notifications
You must be signed in to change notification settings - Fork 3
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
11 changed files
with
170 additions
and
10 deletions.
There are no files selected for viewing
File renamed without changes.
158 changes: 158 additions & 0 deletions
158
runner/src/context-builder/__snapshots__/context.test.ts.snap
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,158 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ContextBuilder unit tests Context object social api can fetch from the near social api 1`] = ` | ||
[ | ||
[ | ||
"https://api.near.social/index", | ||
{ | ||
"body": "{"action":"post","key":"main","options":{"limit":1,"order":"desc"}}", | ||
"headers": { | ||
"Content-Type": "application/json", | ||
}, | ||
"method": "POST", | ||
}, | ||
], | ||
] | ||
`; | ||
|
||
exports[`ContextBuilder unit tests ContextBuilder adds CRUD operations for table 1`] = ` | ||
{ | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
} | ||
`; | ||
|
||
exports[`ContextBuilder unit tests ContextBuilder can parse various schemas 1`] = ` | ||
{ | ||
"Posts": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
} | ||
`; | ||
|
||
exports[`ContextBuilder unit tests ContextBuilder can parse various schemas 2`] = ` | ||
{ | ||
"Comments": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
"PostLikes": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
"Posts": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
} | ||
`; | ||
|
||
exports[`ContextBuilder unit tests ContextBuilder can parse various schemas 3`] = ` | ||
{ | ||
"CommentsTable": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
"Posts": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
} | ||
`; | ||
|
||
exports[`ContextBuilder unit tests ContextBuilder can parse various schemas 4`] = ` | ||
{ | ||
"AnotherTable": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
"Comments": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
"ComposerQuest": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
"ContractorQuest": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
"CreatorQuest": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
"MyTable1": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
"PostLikes": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
"Posts": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
"ThirdTable": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
"YetAnotherTable": { | ||
"delete": [Function], | ||
"insert": [Function], | ||
"select": [Function], | ||
"update": [Function], | ||
"upsert": [Function], | ||
}, | ||
} | ||
`; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default } from './context-builder'; | ||
export type { ContextObject } from './context-builder'; |
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
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
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