1 | import NumberInsight from "../lib/NumberInsight";
|
2 |
|
3 | import NexmoStub from "./NexmoStub";
|
4 |
|
5 | var numberInsightAPIs = {
|
6 | numberInsightAdvancedAsync: 'get|{"level":"advancedAsync"}',
|
7 | numberInsightAdvanced: 'get|{"level":"advancedSync"}',
|
8 | numberInsightStandard: 'get|{"level":"standard"}',
|
9 | numberInsightBasic: 'get|{"level":"basic"}'
|
10 | };
|
11 |
|
12 | describe("NumberInsight Object", function() {
|
13 | it("should implement all v1 APIs", function() {
|
14 | NexmoStub.checkAllFunctionsAreDefined(numberInsightAPIs, NumberInsight);
|
15 | });
|
16 |
|
17 | it("should proxy the function call to the underlying `nexmo` object", function() {
|
18 | NexmoStub.checkAllFunctionsAreCalled(numberInsightAPIs, NumberInsight);
|
19 | });
|
20 | });
|