7digital-api
Version:
7digital API client for nodeJS
54 lines (41 loc) • 1.38 kB
JavaScript
;
var assert = require('chai').assert;
var api = require('../index');
describe('Artists actions', function() {
var artists;
beforeEach(function() {
artists = new api.Artists();
});
it('generates a browse method for the browse action', function() {
assert(artists.browse);
assert.isFunction(artists.browse);
});
it('generates a getChart method for the chart action', function() {
assert(artists.getChart);
assert.isFunction(artists.getChart);
});
it('generates a getDetails method for the details action', function() {
assert(artists.getDetails);
assert.isFunction(artists.getDetails);
});
it('generates a getReleases method for the releases action', function() {
assert(artists.getReleases);
assert.isFunction(artists.getReleases);
});
it('generates a search method for the search action', function() {
assert(artists.search);
assert.isFunction(artists.search);
});
it('generates a getTopTracks method for the toptracks action', function() {
assert(artists.getTopTracks);
assert.isFunction(artists.getTopTracks);
});
it('generates a getTags method for the tags action', function() {
assert(artists.getTags);
assert.isFunction(artists.getTags);
});
it('generates a getTopByTags method for the bytag/top action', function() {
assert(artists.getTopByTags);
assert.isFunction(artists.getTopByTags);
});
});