Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.