Skip to content

Commit

Permalink
register localization service in system layer tests (ampproject#19725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enriqe authored and Noran Azmy committed Mar 22, 2019
1 parent 90768ac commit 09975c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/amp-story/1.0/test/test-amp-story-system-layer.js
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/
import {Action, AmpStoryStoreService} from '../amp-story-store-service';
import {LocalizationService} from '../localization';
import {ProgressBar} from '../progress-bar';
import {Services} from '../../../../src/services';
import {SystemLayer} from '../amp-story-system-layer';
Expand All @@ -36,6 +37,9 @@ describes.fakeWin('amp-story system layer', {amp: true}, env => {
storeService = new AmpStoryStoreService(win);
registerServiceBuilder(win, 'story-store', () => storeService);

const localizationService = new LocalizationService(win);
registerServiceBuilder(win, 'localization', () => localizationService);

progressBarRoot = win.document.createElement('div');

progressBarStub = {
Expand Down

0 comments on commit 09975c4

Please sign in to comment.