Skip to content
Snippets Groups Projects
Commit a17dd747 authored by Xiao Gui's avatar Xiao Gui
Browse files

fix lint & test

parent 45f81843
No related branches found
No related tags found
No related merge requests found
......@@ -18,12 +18,10 @@ getTestBed().initTestEnvironment(
platformBrowserDynamicTesting()
);
// const testContext = require.context('../src', true, /\.spec\.ts$/)
// testContext.keys().map(testContext)
const testContext = require.context('../src', true, /\.spec\.ts$/)
testContext.keys().map(testContext)
// const workerCtx = require.context('../worker', true, /\.spec\.js$/)
// workerCtx.keys().map(workerCtx)
const workerCtx = require.context('../worker', true, /\.spec\.js$/)
workerCtx.keys().map(workerCtx)
// require('../common/util.spec.js')
require('../src/atlasComponents/parcellationRegion/region.base.spec')
\ No newline at end of file
require('../common/util.spec.js')
......@@ -447,7 +447,7 @@ describe('> region.base.ts', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [
provideMockStore({ initialState: {} })
provideMockStore()
]
})
})
......
......@@ -36,7 +36,7 @@ export class RegionBase {
this.position = val && val.position
if (!this._region) return
let rgb = this._region.rgb
const rgb = this._region.rgb
|| (this._region.labelIndex > 65500 && [255, 255, 255])
|| strToRgb(`${this._region.ngId || this._region.name}${this._region.labelIndex}`)
|| [255, 200, 200]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment