global.require && require("../../../src/core/node.js");

describe('ConteXt object', function() {
  it('exists', function() {
    expect(foam).toBeTruthy();
    foam.register({id: 'com.acme.Foo'});
    foam.lookup('com.acme.Foo');
  });

  it('subcontexts', function() {
    var sub = foam.sub({ hello: 4 }, 'namey');
    expect(sub.hello).toEqual(4);
  });

  it('subcontexts with dynamic values', function() {
    foam.CLASS({ name: 'Tester',
      properties: [ 'a' ]
    });
    var test = /*X.*/Tester.create({ a: 3 });
    var sub = foam.sub({ hello$: test.a$ });

    expect(sub.hello).toEqual(3);
    test.a = 99;
    expect(sub.hello).toEqual(99);

  });

  it('describes', function() {
    foam.sub().describe();

    foam.sub({ hello: 'thing', wee: foam.core.Property.create() }, 'namey').describe();
  });

});

@@ -1,61 +1,4 @@
-global.require && require(%22../../../src/core/node.js%22);%0A%0A
 desc

Remove unneeded require();