Skip to content

Commit 6f487bb

Browse files
committed
Add tests
1 parent 8d8744c commit 6f487bb

11 files changed

Lines changed: 765 additions & 0 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Beep
2+
3+
<section class="intro">
4+
5+
Beep boop.
6+
7+
</section>
8+
9+
<!-- /.intro -->
10+
11+
<section class="usage">
12+
13+
## Usage
14+
15+
```javascript
16+
var foo = require( '@stdlib/foo' );
17+
```
18+
19+
#### foo()
20+
21+
Foo bar.
22+
23+
```javascript
24+
var y = foo();
25+
```
26+
27+
</section>
28+
29+
<!-- /.usage -->
30+
31+
<section class="notes">
32+
33+
</section>
34+
35+
<!-- /.notes -->
36+
37+
<section class="examples">
38+
39+
## Examples
40+
41+
<!-- eslint no-undef: "error" -->
42+
43+
```javascript
44+
setTimeout( onTimeout, 0 );
45+
46+
function onTimeout() {
47+
var x = 3.14;
48+
}
49+
```
50+
51+
</section>
52+
53+
<!-- /.examples -->
54+
55+
<section class="links">
56+
57+
</section>
58+
59+
<!-- /.links -->
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Beep
2+
3+
<section class="intro">
4+
5+
Beep boop.
6+
7+
</section>
8+
9+
<!-- /.intro -->
10+
11+
<section class="usage">
12+
13+
## Usage
14+
15+
```javascript
16+
var foo = require( '@stdlib/foo' );
17+
```
18+
19+
#### foo()
20+
21+
Foo bar.
22+
23+
```javascript
24+
var y = foo();
25+
```
26+
27+
</section>
28+
29+
<!-- /.usage -->
30+
31+
<section class="notes">
32+
33+
</section>
34+
35+
<!-- /.notes -->
36+
37+
<section class="examples">
38+
39+
## Examples
40+
41+
<!-- eslint no-undef: "error" -->
42+
43+
```javascript
44+
setTimeout( onTimeout, 0 );
45+
46+
function onTimeout() {
47+
throw new Error( 'boop' );
48+
}
49+
```
50+
51+
</section>
52+
53+
<!-- /.examples -->
54+
55+
<section class="links">
56+
57+
</section>
58+
59+
<!-- /.links -->
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Beep
2+
3+
<section class="intro">
4+
5+
Beep boop.
6+
7+
</section>
8+
9+
<!-- /.intro -->
10+
11+
<section class="usage">
12+
13+
## Usage
14+
15+
```javascript
16+
var foo = require( '@stdlib/foo' );
17+
```
18+
19+
#### foo()
20+
21+
Foo bar.
22+
23+
```javascript
24+
var y = foo();
25+
```
26+
27+
</section>
28+
29+
<!-- /.usage -->
30+
31+
<section class="notes">
32+
33+
</section>
34+
35+
<!-- /.notes -->
36+
37+
<section class="examples">
38+
39+
## Examples
40+
41+
<!-- eslint no-undef: "error" -->
42+
43+
```javascript
44+
setTimeout( onTimeout, 0 );
45+
46+
function onTimeout() {
47+
console.error( '# the plugin supports examples which print to stdout (async)' );
48+
}
49+
```
50+
51+
</section>
52+
53+
<!-- /.examples -->
54+
55+
<section class="links">
56+
57+
</section>
58+
59+
<!-- /.links -->
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Beep
2+
3+
<section class="intro">
4+
5+
Beep boop.
6+
7+
</section>
8+
9+
<!-- /.intro -->
10+
11+
<section class="usage">
12+
13+
## Usage
14+
15+
```javascript
16+
var foo = require( '@stdlib/foo' );
17+
```
18+
19+
#### foo()
20+
21+
Foo bar.
22+
23+
```javascript
24+
var y = foo();
25+
```
26+
27+
</section>
28+
29+
<!-- /.usage -->
30+
31+
<section class="notes">
32+
33+
</section>
34+
35+
<!-- /.notes -->
36+
37+
<section class="examples">
38+
39+
## Examples
40+
41+
<!-- eslint no-undef: "error" -->
42+
43+
```javascript
44+
setTimeout( onTimeout, 0 );
45+
46+
function onTimeout() {
47+
console.log( '# the plugin supports examples which print to stdout (async)' );
48+
}
49+
```
50+
51+
</section>
52+
53+
<!-- /.examples -->
54+
55+
<section class="links">
56+
57+
</section>
58+
59+
<!-- /.links -->

tools/remark/plugins/remark-run-javascript-examples/test/fixtures/empty.md.txt

Whitespace-only changes.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Beep
2+
3+
<section class="intro">
4+
5+
Beep boop.
6+
7+
</section>
8+
9+
<!-- /.intro -->
10+
11+
<section class="usage">
12+
13+
## Usage
14+
15+
```javascript
16+
var foo = require( '@stdlib/foo' );
17+
```
18+
19+
#### foo()
20+
21+
Foo bar.
22+
23+
```javascript
24+
var y = foo();
25+
```
26+
27+
</section>
28+
29+
<!-- /.usage -->
30+
31+
<section class="notes">
32+
33+
</section>
34+
35+
<!-- /.notes -->
36+
37+
<section class="links">
38+
39+
</section>
40+
41+
<!-- /.links -->
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Beep
2+
3+
<section class="intro">
4+
5+
Beep boop.
6+
7+
</section>
8+
9+
<!-- /.intro -->
10+
11+
<section class="usage">
12+
13+
## Usage
14+
15+
```javascript
16+
var foo = require( '@stdlib/foo' );
17+
```
18+
19+
#### foo()
20+
21+
Foo bar.
22+
23+
```javascript
24+
var y = foo();
25+
```
26+
27+
</section>
28+
29+
<!-- /.usage -->
30+
31+
<section class="notes">
32+
33+
</section>
34+
35+
<!-- /.notes -->
36+
37+
<section class="examples">
38+
39+
## Examples
40+
41+
<!-- eslint no-undef: "error" -->
42+
43+
```javascript
44+
var x = 3.14;
45+
```
46+
47+
</section>
48+
49+
<!-- /.examples -->
50+
51+
<section class="links">
52+
53+
</section>
54+
55+
<!-- /.links -->
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Beep
2+
3+
<section class="intro">
4+
5+
Beep boop.
6+
7+
</section>
8+
9+
<!-- /.intro -->
10+
11+
<section class="usage">
12+
13+
## Usage
14+
15+
```javascript
16+
var foo = require( '@stdlib/foo' );
17+
```
18+
19+
#### foo()
20+
21+
Foo bar.
22+
23+
```javascript
24+
var y = foo();
25+
```
26+
27+
</section>
28+
29+
<!-- /.usage -->
30+
31+
<section class="notes">
32+
33+
</section>
34+
35+
<!-- /.notes -->
36+
37+
<section class="examples">
38+
39+
## Examples
40+
41+
<!-- eslint no-undef: "error" -->
42+
43+
```javascript
44+
throw new Error( 'beep' );
45+
```
46+
47+
</section>
48+
49+
<!-- /.examples -->
50+
51+
<section class="links">
52+
53+
</section>
54+
55+
<!-- /.links -->

0 commit comments

Comments
 (0)