From a5419d01581081b347536f71537dfd3b78071fed Mon Sep 17 00:00:00 2001 From: technomad21c Date: Tue, 26 May 2020 10:01:40 -0700 Subject: [PATCH] add default parameters for deploy and modify the hashvalue for share-link test --- src/test/examples/cameligo/id.mligo | 8 +++++++- src/test/examples/pascaligo/id.ligo | 9 ++++++++- src/test/examples/reasonligo/id.religo | 7 ++++++- tools/webide/packages/e2e/test/share.spec.js | 2 +- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/test/examples/cameligo/id.mligo b/src/test/examples/cameligo/id.mligo index 8ae86b16d..cdce7161f 100644 --- a/src/test/examples/cameligo/id.mligo +++ b/src/test/examples/cameligo/id.mligo @@ -19,8 +19,14 @@ name_price=0tez; skip_price=333mutez } - deploy: + entrypoint: main + storage: | + { + identities=Big_map.literal[(1, {owner=("tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" : address); controller=("tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" : address); profile=0x0501000000026869});]; + next_id=2; + name_price=10tez; + skip_price=333mutez} evaluateValue: entrypoint: "" evaluateFunction: diff --git a/src/test/examples/pascaligo/id.ligo b/src/test/examples/pascaligo/id.ligo index 887d64d6d..5178916bd 100644 --- a/src/test/examples/pascaligo/id.ligo +++ b/src/test/examples/pascaligo/id.ligo @@ -22,7 +22,14 @@ ] deploy: entrypoint: main - storage: + storage: | + record [ + identities=big_map[1->record [owner=("tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" : address); + controller=("tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" : address); profile=0x0501000000026869]]; + next_id=2; + name_price=0tez; + skip_price=50mutez; + ] evaluateValue: entrypoint: "" evaluateFunction: diff --git a/src/test/examples/reasonligo/id.religo b/src/test/examples/reasonligo/id.religo index 456439a0c..b399cba1b 100644 --- a/src/test/examples/reasonligo/id.religo +++ b/src/test/examples/reasonligo/id.religo @@ -21,7 +21,12 @@ } deploy: entrypoint: main - storage: 0 + storage: | + { + identities:Big_map.literal([(1, {owner:("tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx" : address), controller:("tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx": address), profile:0x0501000000026869})]), + next_id:2, + name_price:10tez, + skip_price:333mutez} evaluateValue: entrypoint: "" evaluateFunction: diff --git a/tools/webide/packages/e2e/test/share.spec.js b/tools/webide/packages/e2e/test/share.spec.js index dd73d64db..2cece1c97 100644 --- a/tools/webide/packages/e2e/test/share.spec.js +++ b/tools/webide/packages/e2e/test/share.spec.js @@ -24,7 +24,7 @@ describe('Share', () => { await responseCallback; const actualShareLink = await page.evaluate(getInputValue, 'share-link'); - const expectedShareLink = `${API_HOST}/p/WxKPBq9-mkZ_kq4cMHXfCQ`; + const expectedShareLink = `${API_HOST}/p/2GnQR0cUYeO7feAw71SJYQ` expect(actualShareLink).toEqual(expectedShareLink); done();