Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre de Souza committed Jul 29, 2015
1 parent 8d1ce53 commit 08703f0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/DfpUser-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ describe("DfpUser", function () {
expect(settingsStuct.client_secret).toBe('client_secret');
expect(settingsStuct.redirect_url).toBe('redirect_url');
expect(settingsStuct.refresh_token).toBe('refresh_token');

var header = dfpSetup.getSOAPHeader();
expect(header.RequestHeader.attributes['soapenv:actor']).toBe('http://schemas.xmlsoap.org/soap/actor/next');
expect(header.RequestHeader.attributes['soapenv:mustUnderstand']).toBe(0);
expect(header.RequestHeader.attributes['xsi:type']).toBe('ns1:SoapRequestHeader');
expect(header.RequestHeader.attributes['xmlns:ns1']).toBe('https://www.google.com/apis/ads/publisher/' + dfpSetup.version);
expect(header.RequestHeader.attributes['xmlns:xsi']).toBe('http://www.w3.org/2001/XMLSchema-instance');
expect(header.RequestHeader.attributes['xmlns:soapenv']).toBe('http://schemas.xmlsoap.org/soap/envelope/');
expect(header.RequestHeader['ns1:networkCode']).toBe(dfpSetup.networkCode);
expect(header.RequestHeader['ns1:applicationName']).toBe(dfpSetup.applicationName);
});
});
});

0 comments on commit 08703f0

Please sign in to comment.