sj-freitas/forofa

View on GitHub
lib/functions/__tests__/toIterable.test.js

Summary

Maintainability
A
0 mins
Test Coverage
const { toIterable } = require("./../toIterable");

describe("fromSingle function", () => {
  it("Converts a single item into an iterable", () => {
    const converted = toIterable("value");

    expect(Array.from(converted)).toEqual(["value"]);
  });
});