How to use the wikibase-sdk.simplify.propertyClaims function in wikibase-sdk

To help you get started, we’ve selected a few wikibase-sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github maxlath / wikibase-edit / test / integration / entity / edit.js View on Github external
.then(res => {
        const propertyClaims = res.entity.claims[propertyId].slice(-3)
        const simplifiedPropertyClaims = simplify.propertyClaims(propertyClaims, { keepRanks: true, keepNonTruthy: true })
        simplifiedPropertyClaims.should.deepEqual(claims[propertyId])
        done()
      })
    })