mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Add setup files and localstorage mock
This commit is contained in:
12
tests/jest.js
Normal file
12
tests/jest.js
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user