Coder Social home page Coder Social logo

gather-phase-4's People

Contributors

jdhines avatar

Watchers

 avatar  avatar

gather-phase-4's Issues

Test Wording

I always say that writing successful tests is 25% coding and 75% writing. Code gets them to work. But 90% of the time people won't look at the code, they'll only see the writing. I try to imagine a non-developer reading my tests. Would they understand the language? If not, I try to write them better and clearer.

it("renders item properties", async () => {

You test is definitely correct in what it does but I think "renders item properties" is not very understandable unless you know the code really well. I would use "renders a single item" or something similar that expresses that what we are testing is seeing an item with the correct info.

Summary: Exceeds Expectations!

I'm reviewing for codecademy. Great job on this! Your code does the job of testing this application really well.

Your code also indicates your have a great understanding of the material so far. I hope you are excited for the rest of the course because you are definitely ready for it!

Rubric

✅ = match
◻️ = see issue
💭 = comment
⭐ = extra credit

Model: Item
#title
✓ is a String ✅
✓ is required ✅
#description
✓ is a String ✅
✓ is required ✅
#imageUrl
✓ is a String ✅
✓ is required ✅

Server path: /
GET
GET / 200
✓ renders an item with a title and image ✅
GET / 200
✓ renders all items from the database ✅

Server path: /items/create
GET
GET /items/create 200
✓ renders empty input fields ✅
POST
POST /items/create 302
✓ creates and saves a new item ✅
POST /items/create 302
✓ redirects home ✅
POST /items/create 400
✓ displays an error message when supplied an empty title ✅
POST /items/create 400
✓ displays an error message when supplied an empty description ✅
POST /items/create 400
✓ displays an error message when supplied an empty imageUrl ✅

Server path: /items/:id
GET
GET /items/5a839f304febd859c09ec411 200
✓ renders a single item ◻️

15 passing (3s)


test/features/user-visits-create-test.js
User visits the create page
posts a new item
✓ and is rendered ✅


test/features/user-visits-root-test.js
User visits root
without existing items
✓ starts blank ✅
can navigate
✓ to the create page ✅
⭐ Also tests delete existing item


/test/features/user-visits-single-item-test.js

User navigates to /items/create
by clicking on a created item
✓ displays information on the item ✅

==================================================================
Number of specs: 3

4 passing

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.