VulpesOS/gaia/apps/calendar/test/assertions.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

23 lines
528 B
JavaScript
Executable file

'use strict';
/*global assert */
assert.hasProperties = function chai_hasProperties(given, props, msg) {
msg = (typeof(msg) === 'undefined') ? '' : msg + ': ';
if (props instanceof Array) {
props.forEach(function(prop) {
assert.ok(
(prop in given),
msg + 'given should have "' + prop + '" property'
);
});
} else {
for (var key in props) {
assert.deepEqual(
given[key],
props[key],
msg + ' property equality for (' + key + ') '
);
}
}
};