That’s the link to my code sandbox. I am trying to make it with hooks, without adding redux or anything like that.
I can get one round of math to pass, but I can’t get step 9, 13. Can someone take the time to explain to me what I need to do next?
I have no clue how to proceed.
miku86
August 28, 2020, 7:01am
2
Hey Ivan,
you can have a look at the tests here:
import { assert } from 'chai';
import { clickButtonsById, getInputValue } from '../utils/element-utils';
import { frontEndLibrariesStack } from '../utils/shared-test-strings';
export default function createCalculatorTests() {
const _1 = 'one';
const _2 = 'two';
const _3 = 'three';
const _4 = 'four';
const _5 = 'five';
const _6 = 'six';
const _7 = 'seven';
const _8 = 'eight';
const _9 = 'nine';
const _0 = 'zero';
const _x = 'multiply';
const _plus = 'add';
const _min = 'subtract';
const _div = 'divide';
const _AC = 'clear';
This file has been truncated. show original
Let us know if this helps you to solve it on your own.
I get the jist of the tests. But can’t really make it out to get the logic for my project. I don’t have a lot of experience making tests.