var expect = require("expect.js"),
    Parser = require('../lib/parser')

    // easier to read..
    singleElemenetMarkup = '<div id="user"></div>',
    secondElementMarkup  = '<div id="membership"></div>'
    multiElementMarkup  = singleElemenetMarkup + secondElementMarkup;


describe('multiple rootElements', function() {
  it('errors if multiple root elements are present by default', function() {
    multiRootParse = function() {
      new Parser(multiElementMarkup, {templateName: 'test',templates: {}})
    }
    expect(multiRootParse).to.throwError(/multiple root elements/);
  });
});

var expect = require("expect.js"),
    Parser = require('../lib/parser')

    // easier to read..
    singleElemenetMarkup = '<div id="user"></div>',
    secondElementMarkup  = '<div id="membership"></div>'
    multiElementMarkup  = singleElemenetMarkup + secondElementMarkup;


describe('multiple rootElements', function() {
  it('errors if multiple root elements are present by default', function() {
    multiRootParse = function() {
      new Parser(multiElementMarkup, {templateName: 'test',templates: {}})
    }
    expect(multiRootParse).to.throwError(/invalid/);
  });
});

fix test for new error message