Skip to content

Commit

Permalink
Merge pull request #9880 from bbc/remove-dot-only-from-tests
Browse files Browse the repository at this point in the history
Remove .only from describe block
  • Loading branch information
MuhammadAHussain authored Feb 22, 2022
2 parents 31c9388 + 5a8e845 commit e8d935f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/lib/analyticsUtils/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,15 +447,15 @@ describe('getAtUserId', () => {
});

it('should return the AT user id', () => {
Cookie.set('atuserid', { val: 'some-random-uuid' });
Cookie.set('atuserid', '{ "val": "some-random-uuid" }');
cookieSetterSpy.mockClear();
const atUserId = getAtUserId();

expect(atUserId).toEqual('some-random-uuid');
});

it('should store the existing AT user id as a stringified JSON value in cookies again so that we update the cookie expiration date', () => {
Cookie.set('atuserid', { val: 'some-random-uuid' });
Cookie.set('atuserid', '{ "val": "some-random-uuid" }');
cookieSetterSpy.mockClear();
const atUserId = getAtUserId();
const [[cookieName, cookieValue, cookieOptions]] =
Expand Down Expand Up @@ -553,7 +553,7 @@ describe('getCampaignType', () => {
});

describe('getRSSMarketingString', () => {
describe.only('"RSS" prefix', () => {
describe('"RSS" prefix', () => {
it('returns "src_medium" when marketing string is present in url', () => {
const href = 'https://www.bbc.com/mundo?at_medium=RSS';
expect(getRSSMarketingString(href, 'RSS')).toEqual([SRC_RSS_FIXTURE]);
Expand Down

0 comments on commit e8d935f

Please sign in to comment.