Guest User

Untitled

a guest
Jul 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. const { NoodleFetcher } = require('../NoodleFetcher')
  2. const readJsonContractFile = require('spring-cloud-contract-json-reader');
  3.  
  4. describe('fetching noodles', () => {
  5. it('should fetch noodle ratings with contracts', async () => {
  6. const noodleFetcher = new NoodleFetcher()
  7. const contractData = await readJsonContractFile('shouldReturnAvailableNoodles.json')
  8.  
  9. const noodleResponse = await noodleFetcher.fetchNoodles()
  10. expect(noodleResponse).toEqual(JSON.parse(contractData))
  11. })
  12. });
Add Comment
Please, Sign In to add comment