2 * Copyright 2014 IBM Corp.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 var should = require("should");
18 var commentNode = require("../../../../nodes/core/core/90-comment.js");
19 var helper = require("../../helper.js");
21 describe('comment node', function() {
23 afterEach(function() {
27 it('should be loaded', function(done) {
28 var flow = [{id:"n1", type:"comment", name: "comment" }];
29 helper.load(commentNode, flow, function() {
30 var n1 = helper.getNode("n1");
31 n1.should.have.property('name', 'comment');