You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it("Create a OneNote page with application/xhtml+xml page content",async()=>{
85
-
try{
86
-
constbody="<!DOCTYPE html><html><head><title>A page with a block of HTML</title></head><body><p>This page contains some <i>formatted</i> <b>text</b>.</p></body></html>";
87
-
constjson=awaitclient
88
-
.api(`/me/onenote/sections/${section.id}/pages`)
89
-
.header("content-type","application/xhtml+xml")
90
-
.post(body);
91
-
constcreatedPageFromHTML=jsonasOnenotePage;
92
-
assert.isDefined(createdPage.id);
93
-
assert.isDefined(createdPage.contentUrl);
94
-
assert.isUndefined(createdPage["random fake property that should be null"]);
95
-
}catch(error){
96
-
throwerror;
97
-
}
85
+
constbody="<!DOCTYPE html><html><head><title>A page with a block of HTML</title></head><body><p>This page contains some <i>formatted</i> <b>text</b>.</p></body></html>";
86
+
constjson=awaitclient
87
+
.api(`/me/onenote/sections/${section.id}/pages`)
88
+
.header("content-type","application/xhtml+xml")
89
+
.post(body);
90
+
constcreatedPageFromHTML=jsonasOnenotePage;
91
+
assert.isDefined(createdPage.id);
92
+
assert.isDefined(createdPage.contentUrl);
93
+
assert.isUndefined(createdPage["random fake property that should be null"]);
98
94
});
99
95
100
96
it("create a OneNote page with html page content and file attachment",async()=>{
0 commit comments