Add automated test for quiz question

This commit is contained in:
2026-10-23 13:29:28 +00:00
parent e14262db4d
commit 1073d8dfde
+11
View File
@@ -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');
});