Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 4cf826f

Browse files
committed
Add import to tests
1 parent 7f4e941 commit 4cf826f

File tree

6 files changed

+282
-9
lines changed

6 files changed

+282
-9
lines changed

package-lock.json

Lines changed: 275 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"jquery": "^2.1.4",
3535
"merge-stream": "^1.0.0",
3636
"node-qunit-phantomjs": "^1.4.0",
37-
"qunitjs": "^1.20.0",
37+
"qunitjs": "2.4.1",
3838
"rimraf": "^2.6.2",
3939
"run-sequence": "^1.1.4",
4040
"ts-loader": "^4.2.0",

src/tests/errorUtils_tests.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/// <reference path="../definitions/qunit/qunit.d.ts" />
2-
1+
import {QUnit, test, deepEqual} from "qunitjs";
32
import {ErrorUtils, RequestErrorType, RequestError} from "../scripts/errorUtils";
43

54
QUnit.module("requestError", {});

src/tests/notebookUtils_tests.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
/// <reference path="../definitions/qunit/qunit.d.ts" />
21

3-
import {SectionParent, SectionPathElement, NotebookUtils} from "../scripts/notebookUtils";
2+
import {SectionPathElement, NotebookUtils} from "../scripts/notebookUtils";
43
import {SectionGroup, Section, Notebook} from "../scripts/structuredTypes";
4+
import {test, ok, QUnit, strictEqual} from "qunitjs";
5+
56

67
let createNotebook = (id: string, isDefault: boolean, sectionGroups: SectionGroup[], sections: Section[]): Notebook => {
78
return {

src/tests/oneNotePage_tests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {OneNotePage} from "../scripts/oneNotePage";
2+
import {QUnit, test, QUnitAssert, ok, equal} from "qunitjs";
23

34
let title = "TITLE";
45
let body = "BODY";

src/tests/typedFormData_tests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {TypedFormData} from "../scripts/typedFormData";
2+
import {QUnit, test, QUnitAssert, ok} from "qunitjs";
23

34
QUnit.module("typedFormData", {});
45

0 commit comments

Comments
 (0)