Skip to content

Commit 44843f1

Browse files
committed
Add location test
1 parent dd527dc commit 44843f1

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

tests/DOMAPI/Location__test.js

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/DOMAPI/Location__test.res

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
open Global
2+
3+
// Note that this only works when you added the `-open Global` bsc flag.
4+
let location = window.location
5+
6+
// Access properties using `.`
7+
let href = location.href
8+
9+
// Invoke methods using the `->TypeModule`
10+
location->Location.reload

0 commit comments

Comments
 (0)