mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): use correct assert method (#61978)
This commit is contained in:
+1
-1
@@ -551,7 +551,7 @@ async () => {
|
||||
const { log } = await logRes.json();
|
||||
const exercise = log[0];
|
||||
assert.isString(exercise.date);
|
||||
assert.include(expectedDates, exercise.date); // Check if date matches any valid dates
|
||||
assert.oneOf(exercise.date, expectedDates); // Check if date matches any valid dates
|
||||
} else {
|
||||
throw new Error(`${logRes.status} ${logRes.statusText}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user