Browse Source

Merge pull request #973 from 01-edu/issue-from-js-piscine-01-651

fixing the tests of interpolation
content-update
MSilva95 2 years ago committed by GitHub
parent
commit
0949c5c782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      js/tests/interpolation_test.js

6
js/tests/interpolation_test.js

@ -12,14 +12,14 @@ const run = async ({ step, start, end, duration, waitTime = 15 }) => {
t(async ({ eq }) => { t(async ({ eq }) => {
// testing duration time, forbid loops // testing duration time, forbid loops
const { length } = await run({ step: 5, start: 0, end: 4, duration: 28 }) const { length } = await run({ step: 5, start: 0, end: 4, duration: 50 })
return eq(length, 2) return eq(length, 1)
}) })
t(async ({ eq }) => { t(async ({ eq }) => {
// testing duration time stamp // testing duration time stamp
const { length } = await run({ const { length } = await run({
step: 5, step: 2,
start: 0, start: 0,
end: 4, end: 4,
duration: 10, duration: 10,

Loading…
Cancel
Save