Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test clarity #90

Open
njsfield opened this issue Nov 14, 2016 · 0 comments
Open

Test clarity #90

njsfield opened this issue Nov 14, 2016 · 0 comments

Comments

@njsfield
Copy link

QUnit.test( "test displayOptionsList", function( assert ) {
  document.getElementsByTagName("input")[0].value = "";
  wordFinder.displayOptionsList();
  assert.equal(document.getElementById("results").style.display, "none", "sets display to none" );
});

Perhaps at the start of this test create a variable that stores the initial display style of the input element (visible/block), then after the wordFinder.displayOptionsList function make another variable that holds the new display style, then compare the two in the test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant