|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
846 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | var assert = require("@sinonjs/referee-sinon").assert;
|
|---|
| 4 | var index = require("./index");
|
|---|
| 5 |
|
|---|
| 6 | var expectedMethods = [
|
|---|
| 7 | "calledInOrder",
|
|---|
| 8 | "className",
|
|---|
| 9 | "every",
|
|---|
| 10 | "functionName",
|
|---|
| 11 | "orderByFirstCall",
|
|---|
| 12 | "typeOf",
|
|---|
| 13 | "valueToString",
|
|---|
| 14 | ];
|
|---|
| 15 | var expectedObjectProperties = ["deprecated", "prototypes"];
|
|---|
| 16 |
|
|---|
| 17 | describe("package", function () {
|
|---|
| 18 | // eslint-disable-next-line mocha/no-setup-in-describe
|
|---|
| 19 | expectedMethods.forEach(function (name) {
|
|---|
| 20 | it(`should export a method named ${name}`, function () {
|
|---|
| 21 | assert.isFunction(index[name]);
|
|---|
| 22 | });
|
|---|
| 23 | });
|
|---|
| 24 |
|
|---|
| 25 | // eslint-disable-next-line mocha/no-setup-in-describe
|
|---|
| 26 | expectedObjectProperties.forEach(function (name) {
|
|---|
| 27 | it(`should export an object property named ${name}`, function () {
|
|---|
| 28 | assert.isObject(index[name]);
|
|---|
| 29 | });
|
|---|
| 30 | });
|
|---|
| 31 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.