import { getFirstDataURLFromScreenshotsObj } from '../getFirstDataURLFromScreenshotsObj';

test('getFirstDataURLFromScreenshotsObj returns the first string value from a screenshots object', () => {
    const str = 'my awesome string';
    expect(
        getFirstDataURLFromScreenshotsObj({
            foo: str,
        })
    ).toBe(str);
    expect(
        getFirstDataURLFromScreenshotsObj({
            foo: {
                bar: {
                    baz: str,
                },
            },
        })
    ).toBe(str);
});
