File tree 2 files changed +21
-20
lines changed
2 files changed +21
-20
lines changed Original file line number Diff line number Diff line change
1
+ import {
2
+ assertEquals ,
3
+ assertExists ,
4
+ } from 'https://deno.land/std@0.192.0/testing/asserts.ts'
5
+ import { Manifest } from './manifest-builder/manifest.ts'
6
+ import { parseArkiveManifest } from './manifest-validator.ts'
7
+
8
+ Deno . test ( 'parseArkiveManifest' , ( ) => {
9
+ const manifestBuilder = new Manifest ( 'test' )
10
+
11
+ manifestBuilder . addChain ( 'ethereum' , ( chain ) => {
12
+ chain . addContract ( [ ] ) . addSources ( { '*' : 1n } )
13
+ } )
14
+
15
+ const manifest = manifestBuilder . build ( )
16
+
17
+ const { problems, data } = parseArkiveManifest . manifest ( manifest )
18
+
19
+ assertEquals ( problems , undefined )
20
+ assertExists ( data )
21
+ } )
Original file line number Diff line number Diff line change 1
- import {
2
- assertEquals ,
3
- assertExists ,
4
- } from 'https://deno.land/std@0.192.0/testing/asserts.ts'
5
1
import { supportedChains } from '../chains.ts'
6
2
import { scope } from '../deps.ts'
7
- import { Manifest } from './manifest-builder/manifest.ts'
8
3
9
4
export const parseArkiveManifest = scope ( {
10
5
manifest : {
@@ -50,18 +45,3 @@ export const parseArkiveManifest = scope({
50
45
handler : 'Function' ,
51
46
} ,
52
47
} ) . compile ( )
53
-
54
- Deno . test ( 'parseArkiveManifest' , ( ) => {
55
- const manifestBuilder = new Manifest ( 'test' )
56
-
57
- manifestBuilder . addChain ( 'ethereum' , ( chain ) => {
58
- chain . addContract ( [ ] ) . addSources ( { '*' : 1n } )
59
- } )
60
-
61
- const manifest = manifestBuilder . build ( )
62
-
63
- const { problems, data } = parseArkiveManifest . manifest ( manifest )
64
-
65
- assertEquals ( problems , undefined )
66
- assertExists ( data )
67
- } )
You can’t perform that action at this time.
0 commit comments