-
Notifications
You must be signed in to change notification settings - Fork 83
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
10 changed files
with
5,975 additions
and
6,855 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
24 changes: 0 additions & 24 deletions
24
packages/sc-project-initializer/commands/init/as-pect.asconfig.json
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
packages/sc-project-initializer/commands/init/as-pect.config.js
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/sc-project-initializer/commands/init/as-test.asconfig.json
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,5 @@ | ||
{ | ||
"options": { | ||
"bindings": "raw" | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
packages/sc-project-initializer/commands/init/as-test.config.json
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 @@ | ||
{ | ||
"input": [ | ||
"./assembly/__tests__/*.spec.ts" | ||
], | ||
"outDir": "./build", | ||
"config": "./as-test.asconfig.json", | ||
"suites": [], | ||
"coverage": { | ||
"enabled": false, | ||
"show": false | ||
}, | ||
"buildOptions": { | ||
"wasi": false, | ||
"parallel": true, | ||
"verbose": true | ||
}, | ||
"runOptions": { | ||
"runtime": { | ||
"name": "node", | ||
"run": "node ./test.js" | ||
} | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
packages/sc-project-initializer/commands/init/assembly/__tests__/as-pect.d.ts
This file was deleted.
Oops, something went wrong.
8 changes: 7 additions & 1 deletion
8
packages/sc-project-initializer/commands/init/assembly/__tests__/massa-example.spec.ts
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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import { describe, expect, log, run, test } from 'as-test'; | ||
import { stringToBytes } from '@massalabs/as-types'; | ||
import { event } from '../contracts/main'; | ||
|
||
describe('Group test', () => { | ||
test('Testing event', () => { | ||
expect(event([])).toStrictEqual(stringToBytes("I'm an event!")); | ||
expect(event([])).toBe(stringToBytes("I'm an event!")); | ||
log('Log test 😉 😉 😉'); | ||
}); | ||
}); | ||
|
||
run({ | ||
log: true, | ||
}); |
Oops, something went wrong.