groove-music-js
Version:
Groove Music Node.JS SDK wrapper
10 lines (9 loc) • 426 B
JavaScript
var WebApiError = require("../src/http-error"),
should = require("should");
describe("Create Web Api Error", function () {
it("should create error with message and status code", function () {
var error = new WebApiError("Something has gone terribly wrong!", 500);
("Something has gone terribly wrong!").should.equal(error.message);
(500).should.equal(error.statusCode);
});
});