We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a08f18 commit c189f86Copy full SHA for c189f86
_posts/tutorial-docs/2016-01-03-tests.md
@@ -49,11 +49,13 @@ Data can be loaded in the user's file by loading it from your tutorial folder. J
49
Although bad practice, it can be easiest to set data to the global scope.
50
51
*path/to/tutorial/data/file.js
52
+
53
```js
54
var data = 42;
55
```
56
57
*test.spec.js*
58
59
60
/// load('data/file.js', true)
61
/// load('user-file.js')
@@ -64,6 +66,7 @@ var data = 42;
64
66
Users can access global data by name in their file.
65
67
68
*user-file.js*
69
70
71
var secret = data - 1;
72
0 commit comments