@@ -27,7 +27,7 @@ Resolves name alias to a Flow address (`0x` prefixed) under the following condit
27
27
28
28
``` javascript
29
29
import path from " path"
30
- import {init , emulator , getAccountAddress } from " flow-js-testing"
30
+ import {init , emulator , getAccountAddress } from " @onflow/ flow-js-testing"
31
31
32
32
const main = async () => {
33
33
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -70,7 +70,7 @@ Props object accepts following fields:
70
70
71
71
``` javascript
72
72
import path from " path" ;
73
- import { init , emulator , deployContractByName } from " flow-js-testing" ;
73
+ import { init , emulator , deployContractByName } from " @onflow/ flow-js-testing" ;
74
74
75
75
const main = async () => {
76
76
const basePath = path .resolve (__dirname , " ../cadence" );
@@ -134,7 +134,7 @@ import {
134
134
getAccountAddress ,
135
135
deployContract ,
136
136
executeScript ,
137
- } from " flow-js-testing"
137
+ } from " @onflow/ flow-js-testing"
138
138
139
139
;(async () => {
140
140
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -286,7 +286,7 @@ This method does not expect any arguments.
286
286
#### Usage
287
287
288
288
``` javascript
289
- import {emulator , init } from " flow-js-testing"
289
+ import {emulator , init } from " @onflow/ flow-js-testing"
290
290
291
291
describe (" test setup" , () => {
292
292
// Instantiate emulator and path to Cadence files
@@ -322,7 +322,7 @@ Method does not return anything.
322
322
323
323
``` javascript
324
324
import path from " path"
325
- import {emulator , init } from " flow-js-testing"
325
+ import {emulator , init } from " @onflow/ flow-js-testing"
326
326
327
327
describe (" test setup" , () => {
328
328
// Instantiate emulator and path to Cadence files
@@ -382,7 +382,7 @@ import {
382
382
emulator ,
383
383
getAccountAddress ,
384
384
getFlowBalance ,
385
- } from " flow-js-testing"
385
+ } from " @onflow/ flow-js-testing"
386
386
387
387
const main = async () => {
388
388
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -488,7 +488,7 @@ Initializes framework variables.
488
488
489
489
``` javascript
490
490
import path from " path"
491
- import {init } from " flow-js-testing"
491
+ import {init } from " @onflow/ flow-js-testing"
492
492
493
493
describe (" test setup" , () => {
494
494
beforeEach (async () => {
@@ -511,13 +511,13 @@ Returns current block offset - amount of blocks added on top of real current blo
511
511
512
512
| Type | Description |
513
513
| ------ | ----------------------------------------------------------------------- |
514
- | number | number representing amount of blocks added on top of real current block |
514
+ | string | number representing amount of blocks added on top of real current block (encoded as string) |
515
515
516
516
#### Usage
517
517
518
518
``` javascript
519
519
import path from " path"
520
- import {init , emulator , getBlockOffset } from " flow-js-testing"
520
+ import {init , emulator , getBlockOffset } from " @onflow/ flow-js-testing"
521
521
522
522
const main = async () => {
523
523
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -564,7 +564,7 @@ import {
564
564
setBlockOffset ,
565
565
builtInMethods ,
566
566
sendTransaction ,
567
- } from " flow-js-testing"
567
+ } from " @onflow/ flow-js-testing"
568
568
569
569
const main = async () => {
570
570
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -611,7 +611,7 @@ Returns current timestamp offset - amount of seconds added on top of real curren
611
611
612
612
``` javascript
613
613
import path from " path"
614
- import {init , emulator , getTimestampOffset } from " flow-js-testing"
614
+ import {init , emulator , getTimestampOffset } from " @onflow/ flow-js-testing"
615
615
616
616
const main = async () => {
617
617
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -658,7 +658,7 @@ import {
658
658
setTimestampOffset ,
659
659
builtInMethods ,
660
660
sendTransaction ,
661
- } from " flow-js-testing"
661
+ } from " @onflow/ flow-js-testing"
662
662
663
663
const main = async () => {
664
664
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -932,7 +932,7 @@ Provides explicit control over how you pass values.
932
932
933
933
``` javascript
934
934
import path from " path"
935
- import {init , emulator , executeScript } from " flow-js-testing"
935
+ import {init , emulator , executeScript } from " @onflow/ flow-js-testing"
936
936
937
937
const main = async () => {
938
938
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -984,7 +984,7 @@ Cadence files.
984
984
985
985
``` javascript
986
986
import path from " path"
987
- import {init , emulator , executeScript } from " flow-js-testing"
987
+ import {init , emulator , executeScript } from " @onflow/ flow-js-testing"
988
988
989
989
const main = async () => {
990
990
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -1055,7 +1055,7 @@ import {
1055
1055
emulator ,
1056
1056
sendTransaction ,
1057
1057
getAccountAddress ,
1058
- } from " flow-js-testing"
1058
+ } from " @onflow/ flow-js-testing"
1059
1059
1060
1060
const main = async () => {
1061
1061
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -1108,7 +1108,7 @@ Cadence files.
1108
1108
1109
1109
``` javascript
1110
1110
import path from " path"
1111
- import {init , emulator , sendTransaction } from " flow-js-testing"
1111
+ import {init , emulator , sendTransaction } from " @onflow/ flow-js-testing"
1112
1112
1113
1113
const main = async () => {
1114
1114
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -1158,7 +1158,7 @@ Returns Cadence template as string with addresses replaced using addressMap
1158
1158
1159
1159
``` javascript
1160
1160
import path from " path"
1161
- import {init , getTemplate } from " flow-js-testing"
1161
+ import {init , getTemplate } from " @onflow/ flow-js-testing"
1162
1162
1163
1163
const main = async () => {
1164
1164
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -1192,7 +1192,7 @@ Returns Cadence template from file with `name` in `_basepath_/contracts` folder
1192
1192
1193
1193
``` javascript
1194
1194
import path from " path"
1195
- import {init , emulator , getContractCode } from " flow-js-testing"
1195
+ import {init , emulator , getContractCode } from " @onflow/ flow-js-testing"
1196
1196
1197
1197
const main = async () => {
1198
1198
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -1237,7 +1237,7 @@ Returns Cadence template from file with `name` in `_basepath_/transactions` fold
1237
1237
1238
1238
``` javascript
1239
1239
import path from " path"
1240
- import {init , emulator , getTransactionCode } from " flow-js-testing"
1240
+ import {init , emulator , getTransactionCode } from " @onflow/ flow-js-testing"
1241
1241
1242
1242
const main = async () => {
1243
1243
const basePath = path .resolve (__dirname , " ../cadence" )
@@ -1283,7 +1283,7 @@ Returns Cadence template from file with `name` in `_basepath_/scripts` folder
1283
1283
1284
1284
``` javascript
1285
1285
import path from " path"
1286
- import {init , emulator , getScriptCode } from " flow-js-testing"
1286
+ import {init , emulator , getScriptCode } from " @onflow/ flow-js-testing"
1287
1287
1288
1288
const main = async () => {
1289
1289
const basePath = path .resolve (__dirname , " ../cadence" )
0 commit comments