Commit abbf9597 authored by Toni Salo's avatar Toni Salo
Browse files

valmistelua yritykselle poistaa teardown valitus

parent c3a6c1ad
import { getByText, render, screen } from '@testing-library/react';
import React from 'react';
import { unmountComponentAtNode } from "react-dom";
import userEvent from '@testing-library/user-event'
import App from './App';
import {Soitinmenu} from './App';
......@@ -7,6 +8,21 @@ import {Oktaavinvaihto} from './App';
import AudioContext from "./AudioContext"
import AudioPlayer from './AudioPlayer';
let container = null;
beforeEach(() => {
// setup a DOM element as a render target
container = document.createElement("div");
afterEach(() => {
// cleanup on exiting
container = null;
// testaa soittimen valitsevaa select-elementtiä
// yhden valitun ja ei valitun soittimen löytyminen todistaa, että menu löytyy
test('soittimen valinta', () => {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment