Add automated test for quiz question
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
const test = require('node:test');
|
||||||
|
const assert = require('node:assert/strict');
|
||||||
|
|
||||||
|
test('sample trivia question has the expected answer', () => {
|
||||||
|
const question = {
|
||||||
|
question: 'What is the capital of France?',
|
||||||
|
answer: 'Paris'
|
||||||
|
};
|
||||||
|
|
||||||
|
assert.equal(question.answer, 'Paris');
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user