Skip to content

Commit 57eb66b

Browse files
authored
Merge pull request #339 from code-dot-org/ben/better-error-test-names
Better error state test names
2 parents 271c569 + 60e0df6 commit 57eb66b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

integration-tests/test/errors.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {
1010
import {expect} from "chai";
1111
import {uploadSources} from "./lib/JavabuilderConnectionHelper.js";
1212

13-
describe("Errors", () => {
14-
it("Compilation Error", (done) => {
13+
describe("Error States", () => {
14+
it("Responds with compilation error when given malformed student code", (done) => {
1515
const expectedMessages = [
1616
COMPILING_STATUS_MESSAGE,
1717
{ type: "SYSTEM_OUT", value: "/HelloWorld.java:1: error: reached end of file while parsing\npublic class HelloWorld {\n ^\n" },
@@ -23,7 +23,7 @@ describe("Errors", () => {
2323
verifyMessages(compilationError, CONSOLE, assertOnMessagesReceived, done);
2424
}).timeout(20000);
2525

26-
it("Runtime Error", (done) => {
26+
it("Responds with FileNotFound exception when unknown file is used", (done) => {
2727
const expectedMessages = [
2828
...INITIAL_STATUS_MESSAGES,
2929
{
@@ -42,7 +42,7 @@ describe("Errors", () => {
4242
verifyMessages(theaterRuntimeFileNotFound, THEATER, assertOnMessagesReceived, done);
4343
}).timeout(20000);
4444

45-
it("Uses blocked classes", (done) => {
45+
it("Throws exception when blocked class used in student code", (done) => {
4646
const expectedMessages = [
4747
...INITIAL_STATUS_MESSAGES,
4848
{

0 commit comments

Comments
 (0)