Merge pull request #1238 from waywardmonkeys/fix-popover-test

Fix popover test.
This commit is contained in:
afc163 2016-03-20 23:49:12 +08:00
commit 8ac8b39d70

View File

@ -23,6 +23,6 @@ describe('Popover', function() {
expect(popup).not.toBe(undefined); expect(popup).not.toBe(undefined);
expect(popup.className).toContain('ant-popover-placement-top'); expect(popup.className).toContain('ant-popover-placement-top');
expect(popup.innerHTML).toMatch(/<div class="ant-popover-title".*?>code<\/div>/); expect(popup.innerHTML).toMatch(/<div class="ant-popover-title".*?>code<\/div>/);
expect(popup.innerHTML).toMatch(/<div class="ant-popover-content".*?>console\.log\('hello world'\)<\/div>/); expect(popup.innerHTML).toMatch(/<div class="ant-popover-inner-content".*?>console\.log\('hello world'\)<\/div>/);
}); });
}); });