|
|
467900 |
"use strict"
|
|
|
467900 |
var isProperty = require("../is-property.js")
|
|
|
467900 |
require("tape")("is-property", function(t) {
|
|
|
467900 |
|
|
|
467900 |
t.assert(isProperty("foo"))
|
|
|
467900 |
t.assert(!isProperty(".foo"))
|
|
|
467900 |
t.assert(!isProperty("a.b.c"))
|
|
|
467900 |
t.assert(isProperty("_joke"))
|
|
|
467900 |
t.assert(isProperty("j_a_b_c"))
|
|
|
467900 |
t.assert(isProperty("f00"))
|
|
|
467900 |
t.assert(!isProperty("0bad"))
|
|
|
467900 |
t.assert(isProperty("break"))
|
|
|
467900 |
t.assert(!isProperty("@context"))
|
|
|
467900 |
|
|
|
467900 |
t.end()
|
|
|
467900 |
})
|