Skip to content

Commit

Permalink
Service Registration: Cleanup of service.js (ampproject#8698)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmh287 authored and mrjoro committed Apr 28, 2017
1 parent 5052e1f commit c7aced2
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 200 deletions.
Expand Up @@ -19,7 +19,7 @@ import {
UserNotificationManager,
} from '../amp-user-notification';
import {createIframePromise} from '../../../../testing/iframe';
import {getExistingServiceForDoc} from '../../../../src/service';
import {getServiceForDoc} from '../../../../src/service';
import * as sinon from 'sinon';


Expand Down Expand Up @@ -50,7 +50,7 @@ describe('amp-user-notification', () => {
function getUserNotification(attrs = {}) {
return createIframePromise().then(iframe_ => {
iframe = iframe_;
storage = getExistingServiceForDoc(iframe.ampdoc, 'storage');
storage = getServiceForDoc(iframe.ampdoc, 'storage');
storageMock = sandbox.mock(storage);
return buildElement(iframe.doc, iframe.ampdoc, attrs);
});
Expand Down

0 comments on commit c7aced2

Please sign in to comment.