Skip to content

Commit

Permalink
fix(dsp-das): Enables rich text saving when creating new text value f… (
Browse files Browse the repository at this point in the history
  • Loading branch information
irmastnt authored Jan 31, 2024
1 parent 36fd44a commit f3c9204
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export class AddValueComponent implements OnInit, AfterViewInit {
ngAfterViewInit() {
setTimeout(() => {
this.createModeActive = true;
this._cd.markForCheck();
}, 0);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('AppConfigService with dev config', () => {
geonameToken: 'geoname_token',
iriBase: 'http://rdfh.ch',
instrumentation: {
environment: 'dev',
environment: 'local-dev',
rollbar: {
enabled: false,
},
Expand All @@ -50,7 +50,7 @@ describe('AppConfigService with dev config', () => {
});

it('should process the fully specified config (dev mode)', async () => {
expect(service.dspConfig.environment).toEqual('dev');
expect(service.dspConfig.environment).toEqual('local-dev');
expect(service.dspConfig.color).toEqual('accent');
expect(service.dspConfig.production).toEqual(false);
expect(service.dspApiConfig.apiProtocol).toEqual('http');
Expand All @@ -65,7 +65,7 @@ describe('AppConfigService with dev config', () => {
expect(service.dspApiConfig.logErrors).toEqual(true);
expect(service.dspAppConfig.geonameToken).toEqual('geoname_token');
expect(service.dspAppConfig.iriBase).toEqual('http://rdfh.ch');
expect(service.dspInstrumentationConfig.environment).toEqual('dev');
expect(service.dspInstrumentationConfig.environment).toEqual('local-dev');
expect(service.dspInstrumentationConfig.rollbar.enabled).toEqual(false);
expect(service.dspInstrumentationConfig.rollbar.accessToken).toBeUndefined();
});
Expand Down Expand Up @@ -115,7 +115,7 @@ describe('AppConfigService with prod config', () => {

it('should process the fully specified config (prod mode)', async () => {
expect(service.dspConfig.release).toEqual('2023.04.02');
expect(service.dspConfig.environment).toEqual('production');
expect(service.dspConfig.environment).toEqual('prod');
expect(service.dspConfig.color).toEqual('primary');
expect(service.dspConfig.production).toEqual(true);
expect(service.dspApiConfig.apiProtocol).toEqual('https');
Expand All @@ -130,7 +130,7 @@ describe('AppConfigService with prod config', () => {
expect(service.dspApiConfig.logErrors).toEqual(true);
expect(service.dspAppConfig.geonameToken).toEqual('geoname_token');
expect(service.dspAppConfig.iriBase).toEqual('http://rdfh.ch');
expect(service.dspInstrumentationConfig.environment).toEqual('production');
expect(service.dspInstrumentationConfig.environment).toEqual('prod');
expect(service.dspInstrumentationConfig.rollbar.enabled).toEqual(true);
expect(service.dspInstrumentationConfig.rollbar.accessToken).toEqual('rollbar_token');
});
Expand Down

0 comments on commit f3c9204

Please sign in to comment.