Real unit test (isolation, no children render)
Calls:
- constructor
- render
// Example. Let's sort the apples, pears, and oranges into the right baskets. | |
const fruits = ["apple", "pear", "apple", "apple", "orange", "pear", "orange", "pear", "apple"] | |
let appleBasket = [] | |
let pearBasket = [] | |
let orangeBasket = [] | |
let strategies = [] | |
const appleSortStrategy = (fruit) => { |