From fe11265fdce22cdcc4ffe1ae6f511c7159fcd2e9 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Mon, 2 Nov 2015 20:12:12 +0000 Subject: [PATCH] test(merge): fix check on jquery object --- test/AngularSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/AngularSpec.js b/test/AngularSpec.js index 704404d4e9eb..62be62ac8cda 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -649,9 +649,9 @@ describe('angular', function() { expect(dst.jqObject).not.toBe(src.jqObject); expect(isElement(dst.element)).toBeTruthy(); - expect(jqLite(dst.element)).not.toBe(dst.element); // i.e it is a DOM element + expect(dst.element.nodeName).toBeDefined(); // i.e it is a DOM element expect(isElement(dst.jqObject)).toBeTruthy(); - expect(jqLite(dst.jqObject)).toBe(dst.jqObject); // i.e it is a jqLite/jquery object + expect(dst.jqObject.nodeName).toBeUndefined(dst.jqObject); // i.e it is a jqLite/jquery object }); });