Skip to content

Commit

Permalink
update basics from last week
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekkopecky committed Oct 6, 2017
1 parent 1cc49cf commit 9548aaf
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion assess.basics.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
"use strict";
QUnit.module("Basics");

QUnit.test("Change the id method in index.js to return your student ID.",
function(assert) {
assert.ok(
id(),
"The function must return something."
);
assert.notOk(
id() == "Replace This With Your Student ID",
"This test will pass as soon as the id function returns anything other than the default value. You should make sure it returns your student ID!"
);
assert.notOk(
id() == "UP654321",
"This second test will pass as soon as the id function returns anything other than the other default value."
);
}
);


QUnit.test("Change the fn method in index.js to return your first name.",
function(assert) {
assert.ok(
fn(),
"The function must return something."
);
assert.notOk(
fn() == "Replace This With Your First Name",
"This test will pass as soon as the fn function returns anything other than the default value. You should make sure it returns your student first name!"
Expand All @@ -22,6 +33,10 @@ QUnit.test("Change the fn method in index.js to return your first name.",

QUnit.test("Change the sn method in index.js to return your surname (family name).",
function(assert) {
assert.ok(
sn(),
"The function must return something."
);
assert.notOk(
sn() == "Replace This With Your Surname",
"This test will pass as soon as the sn function returns anything other than the default value. You should make sure it returns your surname!"
Expand Down

0 comments on commit 9548aaf

Please sign in to comment.