mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-31 22:36:56 -04:00
tests complete for ClayConfig and ClayItem
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
var assert = require('chai').assert;
|
||||
|
||||
/**
|
||||
* @param {Object} object
|
||||
* @param {Array} properties
|
||||
*/
|
||||
module.exports.checkReadOnly = function(object, properties) {
|
||||
properties.forEach(function(property) {
|
||||
assert.strictEqual(
|
||||
Object.getOwnPropertyDescriptor(object, property).writable,
|
||||
false
|
||||
);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user