(markProperties, tabProperties)
| 3 | |
| 4 | context("marks", () => { |
| 5 | const createMark = async (markProperties, tabProperties) => { |
| 6 | const mark = Object.assign({ scrollX: 0, scrollY: 0 }, markProperties); |
| 7 | const tab = Object.assign({ url: "http://example.com" }, tabProperties); |
| 8 | const sender = { tab: tab }; |
| 9 | await marks.create(mark, sender); |
| 10 | }; |
| 11 | |
| 12 | setup(() => { |
| 13 | chrome.storage.session.clear(); |