Code Monkey home page Code Monkey logo

breakingbad's People

Contributors

saykaren avatar

Watchers

 avatar  avatar

breakingbad's Issues

Test Modal

the other piece is to try to focus tests on behavior - for example if your list component always will show characters in alphabetical order even if the provided characters aren’t in alphabetical order then it would be good to test that it is sorting - so you have your mock data, shuffle it randomly in your test, then pass it in and ensure the order is correct even though the incoming data is in a different order

Testing

one comment on the tests- the names of them should describe what you’re testing (the behavior) - that’s why they start with “it” - as in “It will call the close method when the close button is clicked” or “it(‘will show only matching data based on the filter value’)“, etc

Filter on api

pull in list by name via api rather than just filter current list

Issue with last test on Table.test.js

it('It filters list to four rows with search term pink', ()=>{
//coming back with 64.....
expect(wrapper.find('input').at(0).prop('value')).toEqual("");
wrapper.find('input').at(0).simulate('change', {target: {id: 'inputSearchTerm', value: "pink"}});
expect(wrapper.find('input').at(0).prop('value')).toEqual("pink");
expect(row).toHaveLength(5);

})

Shows the input is changing value but doesn't seem to be changing the rows....wonder if just for testing purposes and I am missing one more step of

Quote

find fun way to display quote

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.