HTTP, Promises, and TDD (Week 6) - Learning Objectives
HTTP (W6D1) - Learning Objectives
HTTP
- Match the header fields of HTTP with a bank of definitions.
- Matching HTTP verbs (GET, PUT, PATCH, POST, DELETE) to their common uses.
- Match common HTTP status codes (200, 302, 400, 401, 403, 404, 500) to their meanings.
- Send a simple HTTP request to google.com
- Write a very simple HTTP server using ‘http’ in node with paths that will result in the common HTTP status codes.
Promises - Part 1 (W6D2) - Learning Objectives
Promises
- Instantiate a Promise object
- Use Promises to write more maintainable asynchronous code
- Use the fetch API to make Promise-based API calls
Promises - Part 2 and HTML Review (W6D3) - Learning Objectives
Promises
- Use async/await with promise-based functions to write asynchronous code that behaves synchronously.
HTML
- Be comfortable with using the following tags. This is review/tangential material and will not be tested directly on the assessment, but if it would appear in a problem, you should know what it is doing.
- html
- head
- title
- link
- script
- The six header tags
- p
- article
- section
- main
- nav
- header
- footer
- Itemized list tags
- a
- img
- Tabular-data tags
- table
- thead
- tbody
- tfoot
- tr
- th
- td
Testing in JavaScript (W6D4) - Learning Objectives
Testing
- Explain the “red-green-refactor” loop of test-driven development.
- Identify the definitions of SyntaxError, ReferenceError, and TypeError
- Create, modify, and get to pass a suite of Mocha tests
- Use Chai to structure your tests using behavior-driven development principles.
- Use the pre- and post-test hooks provided by Mocha
- Be familiar with
chai-spies
and its ability to test how many times a function is invoked