Repository: couchdb-fauxton Updated Branches: refs/heads/master 8a1aaff19 -> 8bca19db1
add missing test-file Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/8bca19db Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/8bca19db Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/8bca19db Branch: refs/heads/master Commit: 8bca19db12afa7fb838e6d6a7a08d812b855fefe Parents: 8a1aaff Author: Robert Kowalski <[email protected]> Authored: Fri Mar 6 12:34:03 2015 +0100 Committer: Robert Kowalski <[email protected]> Committed: Mon Mar 9 10:49:21 2015 -0500 ---------------------------------------------------------------------- .../tests/paddedBorderedBoxSpec.react.jsx | 44 ++++++++++++++++++++ 1 file changed, 44 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/8bca19db/app/addons/components/tests/paddedBorderedBoxSpec.react.jsx ---------------------------------------------------------------------- diff --git a/app/addons/components/tests/paddedBorderedBoxSpec.react.jsx b/app/addons/components/tests/paddedBorderedBoxSpec.react.jsx new file mode 100644 index 0000000..b262bc3 --- /dev/null +++ b/app/addons/components/tests/paddedBorderedBoxSpec.react.jsx @@ -0,0 +1,44 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. +define([ + 'api', + 'addons/components/react-components.react', + + 'testUtils', + 'react' +], function (FauxtonAPI, ReactComponents, utils, React) { + + var assert = utils.assert; + var TestUtils = React.addons.TestUtils; + + describe('PaddedBorderedBox', function () { + var container, el; + + beforeEach(function () { + container = document.createElement('div'); + }); + + afterEach(function () { + React.unmountComponentAtNode(container); + }); + + it('hosts child elements', function () { + el = TestUtils.renderIntoDocument( + <ReactComponents.PaddedBorderedBox> + <div className="foo-children"></div> + </ReactComponents.PaddedBorderedBox>, + container + ); + assert.ok($(el.getDOMNode()).find('.foo-children').length); + }); + }); +});
