7digital-api
Version:
7digital API client for nodeJS
30 lines (21 loc) • 626 B
JavaScript
;
var assert = require('chai').assert;
var api = require('../index');
describe('Tracks actions', function() {
var tracks;
beforeEach(function() {
tracks = new api.Tracks();
});
it('generates a getChart method for the chart action', function() {
assert(tracks.getChart);
assert.isFunction(tracks.getChart);
});
it('generates a getDetails method for the details action', function() {
assert(tracks.getDetails);
assert.isFunction(tracks.getDetails);
});
it('generates a search method for the search action', function() {
assert(tracks.search);
assert.isFunction(tracks.search);
});
});