Browse Source

linting and unit test fixes

Alexander Rose 5 years ago
parent
commit
7234ad261b
3 changed files with 8 additions and 3 deletions
  1. 5 0
      src/mol-io/reader/_spec/ccp4.spec.ts
  2. 2 2
      src/mol-plugin/config.ts
  3. 1 1
      src/mol-plugin/context.ts

+ 5 - 0
src/mol-io/reader/_spec/ccp4.spec.ts

@@ -16,10 +16,15 @@ function createCcp4Data() {
     dv.setInt8(52 * 4 + 2, 'P'.charCodeAt(0))
     dv.setInt8(52 * 4 + 3, ' '.charCodeAt(0))
 
+    dv.setUint8(53 * 4, 17)
+    dv.setUint8(53 * 4 + 1, 17)
+
     dv.setInt32(0 * 4, 1) // NC
     dv.setInt32(1 * 4, 2) // NR
     dv.setInt32(2 * 4, 3) // NS
 
+    dv.setInt32(3 * 4, 0) // NC
+
     return data
 }
 

+ 2 - 2
src/mol-plugin/config.ts

@@ -14,13 +14,13 @@ function item<T>(key: string, defaultValue?: T) { return new PluginConfigItem(ke
 
 export const PluginConfig = {
     item,
-    State: { 
+    State: {
         DefaultServer: item('plugin-state.server', 'https://webchem.ncbr.muni.cz/molstar-state'),
         CurrentServer: item('plugin-state.server', 'https://webchem.ncbr.muni.cz/molstar-state')
     }
 }
 
-export class PluginConfigManager {    
+export class PluginConfigManager {
     private _config = new Map<PluginConfigItem<any>, unknown>();
 
     get<T>(key: PluginConfigItem<T>) {

+ 1 - 1
src/mol-plugin/context.ts

@@ -89,7 +89,7 @@ export class PluginContext {
             selectionUpdated: this.ev()
         }
     } as const
-    
+
     readonly config = new PluginConfigManager(this.spec.config);
 
     readonly behaviors = {