1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-06-09 08:00:28 +00:00

Add setup files and localstorage mock

This commit is contained in:
Nikolay Lopin
2018-03-25 21:02:35 +03:00
parent b098a15e9c
commit 646ebe592e
3 changed files with 21 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
// Here you can mock the libraries connected through direct insertion <script src="" >
global.Raphael = {
setWindow: jest.fn(),
registerFont: jest.fn(),
fn: function () {
return {}
}
}
global._ = {
extend: jest.genMockFunction()
}