mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
test(browser): drive an undefined reading through the whole web path
four layers carry it: the page's envelope, the driver's unwrap, the runner's count check and the verifier's decode. each has a unit test and only a run proves they compose. goes red both ways, decoding an absent value as null and dropping the envelope.
This commit is contained in:
1 parent
85338aeaf1
commit
ce4f660098
3 files changed
+62
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<body>
|
||||
<!-- One control and one counter. The spec's other two extractors look for
|
||||
ids that are not here, which is the shape a route-scoped extractor has
|
||||
on every step it is off its own screen. -->
|
||||
<div id="app">
|
||||
<button id="go" style="width:200px;height:80px">go</button>
|
||||
<div id="count">0</div>
|
||||
</div>
|
||||
<script>
|
||||
let taps = 0;
|
||||
document.getElementById("go").addEventListener("click", function () {
|
||||
document.getElementById("count").textContent = String(++taps);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user