mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-18 00:15:54 +08:00
commit message
This commit is contained in:
19
node_modules/popper.js/tests/_setup.js
generated
vendored
Normal file
19
node_modules/popper.js/tests/_setup.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
var baseTemplate = window.document.body.innerHTML;
|
||||
var wrapper = document.createElement('div');
|
||||
wrapper.id = 'jasmineWrapper';
|
||||
document.body.appendChild(wrapper);
|
||||
|
||||
beforeEach(function() {
|
||||
jasmineWrapper.innerHTML = '';
|
||||
|
||||
jasmine.addMatchers({
|
||||
toBeApprox: function() {
|
||||
return {
|
||||
compare: function(actual, expected, within) {
|
||||
within = within || 1;
|
||||
return { pass: (actual >= (expected - within)) && (actual <= (expected + within)) };
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user