UNPKG

@danielkalen/simplybind

Version:

Magically simple, framework-less one-way/two-way data binding for frontend/backend in ~5kb.

35 lines (29 loc) 1.03 kB
if mocha? and window? isBrowser = true isPhantom = not Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.get mocha.setup('tdd') mocha.bail() unless @isSauceLabsTest or location.hostname else # simplyimport:ignore isBrowser = false global.window = global global.chai = require 'chai' global.chaiSpies = require 'chai-spies' global.SimplyBind = require '../dist/simplybind.node.debug.js' global.startSandbox = require('./testHelpers.js').startSandbox global.restartSandbox = require('./testHelpers.js').restartSandbox chai.use chaiSpies # simplyimport:ignore expect = chai.expect if not Object.values then Object.values = (obj)-> Object.keys(obj).map (key)-> obj[key] suite "SimplyBind", ()-> suiteSetup(startSandbox) import specs/settings-and-options import specs/argument-values import specs/errors-and-warnings import specs/internal-behavior import specs/binding-behavior import specs/data-binding import specs/stage-1-methods import specs/stage-2-methods import specs/unBindAll