Home Manual Reference Source Test Repository

spec-js/symbol/observable-spec.js

"use strict";
var chai_1 = require('chai');
var symbol_observable_1 = require('symbol-observable');
var root_1 = require('../../dist/package/util/root');
var observable_1 = require('../../dist/package/symbol/observable');
describe('observable symbol', function () {
    it('should exist in the proper form', function () {
        var $$observable = observable_1.getSymbolObservable(root_1.root);
        if (root_1.root.Symbol && root_1.root.Symbol.for) {
            chai_1.expect($$observable).to.equal(symbol_observable_1.default);
        }
        else {
            chai_1.expect($$observable).to.equal('@@observable');
        }
    });
});
//# sourceMappingURL=observable-spec.js.map