Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { NoodleFetcher } = require('../NoodleFetcher')
- const readJsonContractFile = require('spring-cloud-contract-json-reader');
- describe('fetching noodles', () => {
- it('should fetch noodle ratings with contracts', async () => {
- const noodleFetcher = new NoodleFetcher()
- const contractData = await readJsonContractFile('shouldReturnAvailableNoodles.json')
- const noodleResponse = await noodleFetcher.fetchNoodles()
- expect(noodleResponse).toEqual(JSON.parse(contractData))
- })
- });
Add Comment
Please, Sign In to add comment