mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
17 lines
292 B
JavaScript
17 lines
292 B
JavaScript
test("basic functionality", () => {
|
|
function foo() {
|
|
i = 3;
|
|
expect(i).toBe(3);
|
|
var i;
|
|
}
|
|
|
|
foo();
|
|
|
|
var caught_exception;
|
|
try {
|
|
j = i;
|
|
} catch (e) {
|
|
caught_exception = e;
|
|
}
|
|
expect(caught_exception).not.toBeUndefined();
|
|
});
|