Skip to content

Commit

Permalink
fix: more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Aug 27, 2020
1 parent 4a49c0e commit f361801
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/SwingSet/test/message-patterns.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export function buildPatterns(log) {
return b.bert;
};
}
// TODO /~https://github.com/Agoric/agoric-sdk/issues/1631
out.a51 = ['a51 done, got [Alleged: presence o-67], match true true'];
test('a51');

Expand Down
6 changes: 6 additions & 0 deletions packages/SwingSet/test/test-message-patterns.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ async function testLocalPattern(t, name) {
}
testLocalPattern.title = (_, name) => `test pattern ${name} local`;
for (const name of Array.from(bp.patterns.keys()).sort()) {
if (name === 'a51') {
// TODO /~https://github.com/Agoric/agoric-sdk/issues/1631
// eslint-disable-next-line no-continue
continue;
}
test('local patterns', testLocalPattern, name);
}

Expand Down Expand Up @@ -112,5 +117,6 @@ async function testCommsPattern(t, name) {
}
testCommsPattern.title = (_, name) => `test pattern ${name} comms`;
for (const name of Array.from(bp.patterns.keys()).sort()) {
// TODO /~https://github.com/Agoric/agoric-sdk/issues/1631
test('comms patterns', testCommsPattern, name);
}
14 changes: 7 additions & 7 deletions packages/dapp-svelte-wallet/api/test/test-lib-wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ test('lib-wallet issuer and purse methods', async t => {
value: [],
currentAmountSlots: {
body:
'{"brand":{"@qclass":"slot","iface":"Zoe Invitation","index":0},"value":[]}',
'{"brand":{"@qclass":"slot","iface":"Alleged: Zoe Invitation brand","index":0},"value":[]}',
slots: [{ kind: 'brand', petname: 'zoe invite' }],
},
currentAmount: {
Expand All @@ -189,7 +189,7 @@ test('lib-wallet issuer and purse methods', async t => {
value: 0,
currentAmountSlots: {
body:
'{"brand":{"@qclass":"slot","iface":"moola","index":0},"value":0}',
'{"brand":{"@qclass":"slot","iface":"Alleged: moola brand","index":0},"value":0}',
slots: [{ kind: 'brand', petname: 'moola' }],
},
currentAmount: {
Expand Down Expand Up @@ -307,7 +307,7 @@ test('lib-wallet dapp suggests issuer, instance, installation petnames', async t
],
currentAmountSlots: {
body:
'{"brand":{"@qclass":"slot","iface":"Zoe Invitation","index":0},"value":[{"description":"getRefund","handle":{"@qclass":"slot","index":1},"instance":{"@qclass":"slot","index":2},"installation":{"@qclass":"slot","index":3}}]}',
'{"brand":{"@qclass":"slot","iface":"Alleged: Zoe Invitation brand","index":0},"value":[{"description":"getRefund","handle":{"@qclass":"slot","index":1},"instance":{"@qclass":"slot","index":2},"installation":{"@qclass":"slot","index":3}}]}',
slots: [
{ kind: 'brand', petname: 'zoe invite' },
{ kind: 'unnamed', petname: 'unnamed-4' },
Expand Down Expand Up @@ -386,7 +386,7 @@ test('lib-wallet dapp suggests issuer, instance, installation petnames', async t
],
currentAmountSlots: {
body:
'{"brand":{"@qclass":"slot","iface":"Zoe Invitation","index":0},"value":[{"description":"getRefund","handle":{"@qclass":"slot","index":1},"instance":{"@qclass":"slot","index":2},"installation":{"@qclass":"slot","index":3}}]}',
'{"brand":{"@qclass":"slot","iface":"Alleged: Zoe Invitation brand","index":0},"value":[{"description":"getRefund","handle":{"@qclass":"slot","index":1},"instance":{"@qclass":"slot","index":2},"installation":{"@qclass":"slot","index":3}}]}',
slots: [
{ kind: 'brand', petname: 'zoe invite' },
{ kind: 'unnamed', petname: 'unnamed-4' },
Expand Down Expand Up @@ -485,7 +485,7 @@ test('lib-wallet dapp suggests issuer, instance, installation petnames', async t
],
currentAmountSlots: {
body:
'{"brand":{"@qclass":"slot","iface":"Zoe Invitation","index":0},"value":[{"description":"getRefund","handle":{"@qclass":"slot","index":1},"instance":{"@qclass":"slot","index":2},"installation":{"@qclass":"slot","index":3}}]}',
'{"brand":{"@qclass":"slot","iface":"Alleged: Zoe Invitation brand","index":0},"value":[{"description":"getRefund","handle":{"@qclass":"slot","index":1},"instance":{"@qclass":"slot","index":2},"installation":{"@qclass":"slot","index":3}}]}',
slots: [
{ kind: 'brand', petname: 'zoe invite' },
{ kind: 'unnamed', petname: 'unnamed-4' },
Expand Down Expand Up @@ -649,7 +649,7 @@ test('lib-wallet offer methods', async t => {
value: [],
currentAmountSlots: {
body:
'{"brand":{"@qclass":"slot","iface":"Zoe Invitation","index":0},"value":[]}',
'{"brand":{"@qclass":"slot","iface":"Alleged: Zoe Invitation brand","index":0},"value":[]}',
slots: [{ kind: 'brand', petname: 'zoe invite' }],
},
currentAmount: {
Expand All @@ -668,7 +668,7 @@ test('lib-wallet offer methods', async t => {
value: 100,
currentAmountSlots: {
body:
'{"brand":{"@qclass":"slot","iface":"moola","index":0},"value":100}',
'{"brand":{"@qclass":"slot","iface":"Alleged: moola brand","index":0},"value":100}',
slots: [{ kind: 'brand', petname: 'moola' }],
},
currentAmount: {
Expand Down

0 comments on commit f361801

Please sign in to comment.