UNPKG

gatsby-source-nytimes-books-api

Version:

This [GatsyJS](https://gatsbyjs.org) source plugin fetches data from the [NYTimes Books API](https://developer.nytimes.com/docs/books-product/1/overview)

12 lines (9 loc) 306 B
const isObject = require("../utils/isObject") describe("isObject", () => { test("returns TRUE if an object is passed in.", () => { expect(isObject({})).toBeTruthy() }) test("returns FALSE if anything other than an object is passed in.", () => { expect(isObject("🌮")).toBeFalsy() }) })