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
assert.isUndefined(createdPage["random fake property that should be null"]);
82
+
});
83
+
84
+
it("Create a OneNote page with application/xhtml+xml page content",async()=>{
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"]);
86
94
});
87
95
88
96
it("create a OneNote page with html page content and file attachment",async()=>{
0 commit comments