Skip to content

Commit 982a31d

Browse files
committed
Merge pull request #749 from bettio/fix-cypress-test-update-doc
Fix cypress test and update doc These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents f585c5b + 7242cd3 commit 982a31d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/src/example-programs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This example program prints the string "Hello World" and quits.
2020
The `hello_world.avm` file will get created as part of a build. This file may be supplied as an argument to the `AtomVM` command:
2121

2222
shell$ ./src/AtomVM ./examples/erlang/hello_world.avm
23-
Hello World
23+
hello_world
2424
Return value: ok
2525

2626
### `udp_server`

src/platforms/emscripten/tests/cypress/e2e/examples.spec.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("emscripten hello world AVM", () => {
3535
cy.stub(win.console, "error").as("consoleError");
3636
},
3737
});
38-
cy.get("@consoleLog").should("be.calledWith", "Hello World");
38+
cy.get("@consoleLog").should("be.calledWith", "hello_world");
3939
cy.get("@consoleLog").should("be.calledWith", "Return value: ok");
4040
cy.get("@consoleError").should("not.be.called");
4141
});
@@ -49,7 +49,7 @@ describe("emscripten hello world BEAM", () => {
4949
cy.stub(win.console, "error").as("consoleError");
5050
},
5151
});
52-
cy.get("@consoleLog").should("be.calledWith", "Hello World");
52+
cy.get("@consoleLog").should("be.calledWith", "hello_world");
5353
cy.get("@consoleLog").should("be.calledWith", "Return value: ok");
5454
cy.get("@consoleError").should("not.be.called");
5555
});

0 commit comments

Comments
 (0)