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

test: initial stab at trying Ava test framework #1447

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
48f54ae
refactor: refactor Zoe to use seat objects rather than offerHandles
katelynsills Aug 5, 2020
db33c09
refactor: update seat namings, add seats.md to docs with diagrams
katelynsills Aug 5, 2020
8984c39
refactor: move up init of instance, instanceAdmin
katelynsills Aug 6, 2020
017c85d
fix: minting allocations in zcf (#1382)
erights Aug 7, 2020
2d69d83
refactor: tests for sellItems and mintAndSellNFT pass - need to be re…
katelynsills Aug 7, 2020
f0dc9db
refactor: fix jsdoc to recognize makeZCFMint as property
katelynsills Aug 7, 2020
75acfff
fix: register the new minty issuer on zcf side (#1392)
erights Aug 7, 2020
48e6119
refactor: redirect main in package.json
katelynsills Aug 8, 2020
4585c45
refactor: apply zoe renames
dtribble Aug 8, 2020
40a4322
fix: solve some easy types
michaelfig Aug 9, 2020
b94086f
fix: use local amountMath (#1408)
erights Aug 9, 2020
56b4faa
fix(swingset): check promise resolution table during comms.inbound
warner Aug 9, 2020
07cf2a2
refactor: multipoolAutoswap
katelynsills Aug 9, 2020
06de2bd
refactor: remove BrandName parameter from ERTP types
michaelfig Aug 9, 2020
5cb4e50
feat: add the ability for a contract to get a synchronous seat
Chris-Hibbert Aug 7, 2020
5235f5b
refactor: cleanup synchronous ZCF seat creation
Chris-Hibbert Aug 9, 2020
6e897bd
refactor: use updateFromNotifier from library
Chris-Hibbert Aug 9, 2020
1624f6f
refactor: add types to reveal the wallet changes needed for Zoe
michaelfig Aug 9, 2020
de1982c
Merge pull request #1410 from Agoric/mfig/wallet-typing
michaelfig Aug 9, 2020
0b761fe
refactor: post review cleanups; mostly type info
Chris-Hibbert Aug 9, 2020
32883ab
Merge pull request #1389 from Agoric/syncEmptySeat
Chris-Hibbert Aug 9, 2020
8de6a7b
fix: make Zoe typesafe again
michaelfig Aug 10, 2020
74c712a
Merge pull request #1412 from Agoric/mfig/zoe-types
michaelfig Aug 10, 2020
1016d35
refactor: bring autoswap up to date on the new Zoe spike branch
Chris-Hibbert Aug 9, 2020
541057b
Merge pull request #1411 from Agoric/autoswap
Chris-Hibbert Aug 10, 2020
0179ec5
fix: update autoswap from addEmptySeat() to makeEmptySeatKit()
Chris-Hibbert Aug 10, 2020
6477f95
Merge pull request #1416 from Agoric/repairAutoswap
Chris-Hibbert Aug 10, 2020
e00ae83
chore: add publicFacet and instance to MakeInstanceResult (#1418)
katelynsills Aug 10, 2020
b7f46c2
chore: fix typing of MakeInstanceResult
katelynsills Aug 10, 2020
e34eb07
chore: add hasExited, getNotifier to UserSeat
katelynsills Aug 10, 2020
6923b17
Merge pull request #1420 from Agoric/has-exited-user-seat
michaelfig Aug 10, 2020
69f402e
Update more unit tests (#1422)
katelynsills Aug 11, 2020
148ec65
fix: make the wallet pass unit tests
michaelfig Aug 10, 2020
7156099
refactor: clear up some more types
michaelfig Aug 10, 2020
eed7856
fix(dapp-svelte-wallet): minor cleanups
michaelfig Aug 11, 2020
0be1766
Merge pull request #1426 from Agoric/mfig/wallet-new-api
michaelfig Aug 11, 2020
24d69f6
test: initial stab at trying Ava test framework
dtribble Aug 12, 2020
68e92f6
test: get more examples working
dtribble Aug 12, 2020
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
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"packages/notifier"
],
"devDependencies": {
"ava": "^3.11.1",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-airbnb-base": "^14.0.0",
Expand Down Expand Up @@ -70,5 +71,24 @@
},
"dependencies": {
"@agoric/store": "^0.2.0"
},
"ava": {
"files": [
"packages/**/test/**/test-*"
],
"concurrency": 12,
"failFast": false,
"failWithoutAssertions": true,
"environmentVariables": {
"MY_ENVIRONMENT_VARIABLE": "some value"
},
"verbose": false,
"require": [
"esm"
],
"nodeArguments": [
"--trace-deprecation",
"--napi-modules"
]
}
}
115 changes: 0 additions & 115 deletions packages/ERTP/src/amountMath.chainmail

This file was deleted.

4 changes: 2 additions & 2 deletions packages/ERTP/src/amountMath.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function makeAmountMath(brand, mathHelpersName) {

/**
* Make an amount from a value by adding the brand.
* @param {any} allegedValue
* @param {Value} allegedValue
* @returns {Amount}
*/
make: allegedValue => {
Expand All @@ -89,7 +89,7 @@ function makeAmountMath(brand, mathHelpersName) {

/**
* Make sure this amount is valid and return it if so, throwing if invalid.
* @param {any} allegedAmount
* @param {Amount} allegedAmount
* @returns {Amount} or throws if invalid
*/
coerce: allegedAmount => {
Expand Down
Loading