fnp
/
fnpeditor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
getting root element
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.test.js
1
define([
2
'libs/chai',
3
'./smartxml.js'
4
], function(chai, smartxml) {
5
6
'use strict';
7
8
9
var expect = chai.expect;
10
11
12
describe.only('Basic use', function() {
13
it('exposes root element', function() {
14
var doc = smartxml.fromXML('<div></div>');
15
expect(doc.root.getTagName()).to.equal('div');
16
});
17
});
18
19
});