Skip to content

Commit ba8cbab

Browse files
committed
Modify tests to work for new plot registration
1 parent b0ff48c commit ba8cbab

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test/jasmine/tests/plots_test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ describe('Test Plots', function() {
206206
revertObj(Plots.allCategories, this.allCategoriesKeys);
207207
});
208208

209-
it('should warn on attempts to reregister a type', function() {
209+
it('should not reregister a type', function() {
210210
Plots.register(this.fakeModule2, 'newtype', ['yellow', 'blue']);
211211
expect(Plots.allCategories.yellow).toBeUndefined();
212212
});
@@ -239,6 +239,8 @@ describe('Test Plots', function() {
239239
name: 'fake',
240240
attr: 'abc',
241241
idRoot: 'cba',
242+
attrRegex: /^abc([2-9]|[1-9][0-9]+)?$/,
243+
idRegex: /^cba([2-9]|[1-9][0-9]+)?$/,
242244
attributes: { stuff: { 'more stuff': 102102 } }
243245
};
244246

test/jasmine/tests/register_test.js

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ describe('the register function', function() {
1313
moduleType: 'trace',
1414
name: 'mockTrace1',
1515
meta: 'Meta string',
16+
basePlotModule: { name: 'plotModule' },
1617
categories: ['categories', 'array']
1718
};
1819

@@ -28,6 +29,7 @@ describe('the register function', function() {
2829
moduleType: 'trace',
2930
name: 'mockTrace2',
3031
meta: 'Meta string',
32+
basePlotModule: { name: 'plotModule' },
3133
categories: ['categories', 'array']
3234
};
3335

0 commit comments

Comments
 (0)