Skip to content

Commit baea0c6

Browse files
committed
Switch test taskpane to use Office.onReady
1 parent 9488a54 commit baea0c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/end-to-end/src/test-taskpane.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const customFunctionsData = (<any>functionsJsonData).functions;
77
const port: number = 4201;
88
let testValues = [];
99

10-
Office.initialize = async () => {
10+
Office.onReady(async () => {
1111
document.getElementById("sideload-msg").style.display = "none";
1212
document.getElementById("app-body").style.display = "flex";
1313
document.getElementById("run").onclick = run;
@@ -18,7 +18,7 @@ Office.initialize = async () => {
1818
await sendTestResults(testValues, port);
1919
await closeWorkbook();
2020
}
21-
};
21+
});
2222

2323
async function runCfTests(): Promise<void> {
2424
// Exercise custom functions

0 commit comments

Comments
 (0)