From 399ba38fb0dd8245482941f8a1b6b9428aa527d7 Mon Sep 17 00:00:00 2001 From: Irina Brennen Date: Mon, 26 Feb 2018 06:35:55 -0600 Subject: [PATCH] fix(seed): Fixed issue with atLeast test always failing (#16717) Closes #16668 --- .../quality-assurance-and-testing-with-chai.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/challenges/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai.json b/challenges/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai.json index 5a379232bb..896bb40db1 100644 --- a/challenges/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai.json +++ b/challenges/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai.json @@ -316,15 +316,15 @@ }, { "text": "Choose the right assertion - isBelow vs. isAtLeast", - "testString": "getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=8').then(data => { assert.equal(data.assertions[0].method, 'isAtLeast', '2 * Math.random() is at least 0'); }, xhr => { throw new Error(xhr.responseText); })" + "testString": "getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=8').then(data => { assert.equal(data.assertions[1].method, 'isAtLeast', '2 * Math.random() is at least 0'); }, xhr => { throw new Error(xhr.responseText); })" }, { "text": "Choose the right assertion - isBelow vs. isAtLeast", - "testString": "getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=8').then(data => { assert.equal(data.assertions[0].method, 'isBelow', '1 is smaller than 2'); }, xhr => { throw new Error(xhr.responseText); })" + "testString": "getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=8').then(data => { assert.equal(data.assertions[2].method, 'isBelow', '1 is smaller than 2'); }, xhr => { throw new Error(xhr.responseText); })" }, { "text": "Choose the right assertion - isBelow vs. isAtLeast", - "testString": "getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=8').then(data => { assert.equal(data.assertions[0].method, 'isBelow', '2/3 (0.6666) is smaller than 1'); }, xhr => { throw new Error(xhr.responseText); })" + "testString": "getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=8').then(data => { assert.equal(data.assertions[3].method, 'isBelow', '2/3 (0.6666) is smaller than 1'); }, xhr => { throw new Error(xhr.responseText); })" } ], "solutions": [],