Last active
January 4, 2019 14:22
-
-
Save LazyFatArrow/fa1de0faa56b219497d605d2b56a3703 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import IResource from '../../typings/IResource' | |
import MoviesApi from '../../api/MoviesApi' | |
const moviesApi: IResource = new MoviesApi() | |
describe('Movies API', () => { | |
it('should create a new movie', () => { | |
const movieData: object = { | |
name: 'Pirates of the caribbean', | |
rating: 8.5 | |
} | |
const movie: object = moviesApi.create(movieData) | |
expect(movie).toEqual(movieData) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment