Add test for abstract.js
This commit is contained in:
parent
97bb8e6bdf
commit
408c7d0d49
|
@ -1,10 +1,12 @@
|
|||
import assert from "assert";
|
||||
import Abstract from "model/abstract";
|
||||
import Album from "model/album";
|
||||
import Label from "model/label";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import Api from "common/api";
|
||||
|
||||
let chai = require('../../../node_modules/chai/chai');
|
||||
let assert = chai.assert;
|
||||
|
||||
describe("model/abstract", () => {
|
||||
const mock = new MockAdapter(Api);
|
||||
it("should set values", () => {
|
||||
|
@ -118,4 +120,7 @@ describe("model/abstract", () => {
|
|||
mock.reset();
|
||||
});
|
||||
|
||||
it("should get collection resource", () => {
|
||||
assert.throws(() => Abstract.getCollectionResource(), Error, "getCollectionResource() needs to be implemented");
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user