Ai
2 Star 0 Fork 0

mirrors_watson/object-prototype-functions

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.js 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
'use strict'
const assert = require('assert')
const ObjectPrototypeFunctions = require('./')
assert(Array.isArray(ObjectPrototypeFunctions))
assert(ObjectPrototypeFunctions.length > 0)
ObjectPrototypeFunctions.forEach(name => {
assert.strictEqual(typeof Object.prototype[name], 'function')
})
assert(Array.isArray(ObjectPrototypeFunctions.deprecated))
assert(ObjectPrototypeFunctions.deprecated.length > 0)
ObjectPrototypeFunctions.deprecated.forEach(name => {
assert.strictEqual(typeof Object.prototype[name], 'function')
})
assert(Array.isArray(ObjectPrototypeFunctions.nonSpec))
assert(ObjectPrototypeFunctions.nonSpec.length > 0)
assert(Array.isArray(ObjectPrototypeFunctions.nodejs))
assert.strictEqual(ObjectPrototypeFunctions.nodejs.length,
ObjectPrototypeFunctions.length +
ObjectPrototypeFunctions.deprecated.length
)
assert(Array.isArray(ObjectPrototypeFunctions.all))
assert.strictEqual(ObjectPrototypeFunctions.all.length,
ObjectPrototypeFunctions.length +
ObjectPrototypeFunctions.deprecated.length +
ObjectPrototypeFunctions.nonSpec.length
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_watson/object-prototype-functions.git
git@gitee.com:mirrors_watson/object-prototype-functions.git
mirrors_watson
object-prototype-functions
object-prototype-functions
master

搜索帮助