This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/renderkid/test/Layout.coffee

16 lines
394 B
CoffeeScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
Layout = require '../src/Layout'
describe "Layout", ->
describe "constructor()", ->
it "should create root block", ->
l = new Layout
expect(l._root).to.exist
l._root._name.should.equal '__root'
describe "get()", ->
it "should not be allowed when any block is open", ->
l = new Layout
l.openBlock()
(->
l.get()
).should.throw Error