test/SurveysReader.spec.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 13
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
mnd 0
bc 0
fnc 2
dl 0
loc 13
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10
1
const SurveysReader = require("../dist/npm").SurveysReader;
2
const snap = require("./snap-events");
3
4
const TOKEN = process.env.SURVEY_MONKEY_TOKEN;
5
6
describe("SurveysReader", () => {
7
  it("should read surveys", done => {
8
    const reader = new SurveysReader({
9
      headers: { authorization: `bearer ${TOKEN}` }
10
    });
11
    snap(reader, done);
12
  });
13
});
14