@@ -0,0 +1,2253 @@
+import %7BDialogConfiguration%7D from '../../src/dialog-configuration';%0Aimport %7BdialogOptions%7D from '../../src/dialog-options';%0Aimport %7BDialogRenderer%7D from '../../src/renderers/dialog-renderer';%0Aimport %7BRenderer%7D from '../../src/renderers/renderer';%0A%0Alet defaultDialogOptions = Object.assign(%7B%7D, dialogOptions);%0A%0Alet aurelia = %7B%0A  globalResources: () =%3E %7B%7D,%0A  singleton: () =%3E %7B%7D%0A%7D;%0A%0Adescribe('DialogConfiguration', () =%3E %7B%0A  let configuration;%0A  beforeEach(() =%3E %7B%0A    configuration = new DialogConfiguration(aurelia);%0A%0A    Object.keys(dialogOptions).forEach((key) =%3E %7B%0A      delete dialogOptions%5Bkey%5D;%0A    %7D);%0A%0A    Object.assign(dialogOptions, defaultDialogOptions);%0A  %7D);%0A%0A  describe('useRenderer', () =%3E %7B%0A    it('should register a renderer as a singleton', () =%3E %7B%0A      let renderer = %7B%7D;%0A      spyOn(aurelia, 'singleton');%0A      configuration.useRenderer(renderer);%0A      expect(aurelia.singleton).toHaveBeenCalledWith(Renderer, renderer);%0A    %7D);%0A%0A    it('should export settings', () =%3E %7B%0A      let renderer = %7B%7D;%0A      let settings = %7B first: 'first', second: 'second' %7D;%0A      configuration.useRenderer(renderer, settings);%0A      expect(dialogOptions.first).toBe(settings.first);%0A      expect(dialogOptions.second).toBe(settings.second);%0A    %7D);%0A  %7D);%0A%0A  describe('useResource', () =%3E %7B%0A    it('should call globalResources', () =%3E %7B%0A      spyOn(aurelia, 'globalResources');%0A      configuration.useResource('ai-dialog');%0A      expect(aurelia.globalResources).toHaveBeenCalled();%0A    %7D);%0A  %7D);%0A%0A  describe('useDefaults', () =%3E %7B%0A    it('should call useRenderer with the default renderer', () =%3E %7B%0A      spyOn(configuration, 'useRenderer').and.callThrough();%0A      spyOn(configuration, 'useResource').and.callThrough();%0A%0A      configuration.useDefaults();%0A      expect(configuration.useRenderer).toHaveBeenCalledWith(DialogRenderer);%0A      expect(configuration.useResource).toHaveBeenCalledWith('ai-dialog');%0A      expect(configuration.useResource).toHaveBeenCalledWith('ai-dialog-header');%0A      expect(configuration.useResource).toHaveBeenCalledWith('ai-dialog-footer');%0A      expect(configuration.useResource).toHaveBeenCalledWith('ai-dialog-body');%0A      expect(configuration.useResource).toHaveBeenCalledWith('attach-focus');%0A    %7D);%0A  %7D);%0A%7D);%0A

add missing test spec