{"size": 1329, "ext": "js", "max_stars_repo_path": "test/image.js", "max_stars_repo_name": "DaStormer/tidal-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/image.js", "max_issues_repo_name": "DaStormer/tidal-api", "max_issues_repo_issues_event_min_datetime": "2021-06-22T11:18:32.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-22T11:18:32.000Z", "max_forks_repo_path": "test/image.js", "max_forks_repo_name": "DaStormer/tidal-api", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 33.225, "max_line_length": 102, "alphanum_fraction": 0.647103085}
import { expect } from 'chai';
import Tidal from '../src';

const tidal = new Tidal();

describe('images', () => {

  describe('artistPicToUrl', () => {

    it('should return an object with the correct sm, md, lg properties', () => {

      expect(tidal.artistPicToUrl('04d63cd8-a1a5-42e0-b1ec-8e336b7d9200'))
        .to.deep.equal({
          sm: 'https://resources.tidal.com/images/04d63cd8/a1a5/42e0/b1ec/8e336b7d9200/160x107.jpg',
          md: 'https://resources.tidal.com/images/04d63cd8/a1a5/42e0/b1ec/8e336b7d9200/320x214.jpg',
          lg: 'https://resources.tidal.com/images/04d63cd8/a1a5/42e0/b1ec/8e336b7d9200/640x428.jpg',
        });

    });

  });

  describe('albumArtToUrl', () => {

    it('should return an object with the correct sm, md, lg, xl properties', () => {

      expect(tidal.albumArtToUrl('9a56f482-e9cf-46c3-bb21-82710e7854d4'))
        .to.deep.equal({
          sm: 'https://resources.tidal.com/images/9a56f482/e9cf/46c3/bb21/82710e7854d4/160x160.jpg',
          md: 'https://resources.tidal.com/images/9a56f482/e9cf/46c3/bb21/82710e7854d4/320x320.jpg',
          lg: 'https://resources.tidal.com/images/9a56f482/e9cf/46c3/bb21/82710e7854d4/640x640.jpg',
          xl: 'https://resources.tidal.com/images/9a56f482/e9cf/46c3/bb21/82710e7854d4/1280x1280.jpg',
        });

    });

  });

});
