diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-11 16:42:11 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:24 +0200 |
commit | 0dc4b133fb0795b9c55f8a9fc95b55bc4df7ebf2 (patch) | |
tree | dc2d84162fa70ffff2b5ae4eed0b2f1896faf2a8 /install/ui/test | |
parent | 9dc8e26b735c7ad6b9ed2277a95c8745edfc7f40 (diff) | |
download | freeipa-0dc4b133fb0795b9c55f8a9fc95b55bc4df7ebf2.tar.gz freeipa-0dc4b133fb0795b9c55f8a9fc95b55bc4df7ebf2.tar.xz freeipa-0dc4b133fb0795b9c55f8a9fc95b55bc4df7ebf2.zip |
Builder: return object when it's already built
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/test')
-rw-r--r-- | install/ui/test/build_tests.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/install/ui/test/build_tests.js b/install/ui/test/build_tests.js index fec8717b..603f41fa 100644 --- a/install/ui/test/build_tests.js +++ b/install/ui/test/build_tests.js @@ -59,6 +59,7 @@ test('Testing builder', function() { var o2 = b2.build({}); var o21 = b2.build({ foo: 'baz'}); + var o22 = b2.build(o21); var r1 = { foo: 'bar' }; var r11 = { foo: 'baz' }; @@ -71,6 +72,8 @@ test('Testing builder', function() { deepEqual(o2, r2, 'Constructor, default'); deepEqual(o21, r21, 'Constructor, spec use'); + strictEqual(o21, o22, 'Don\'t build built object'); + }); test('Testing Spec_mod', function() { |