Skip to content

Commit e8d935f

Browse files
Merge pull request #9880 from bbc/remove-dot-only-from-tests
Remove .only from describe block
2 parents 31c9388 + 5a8e845 commit e8d935f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/lib/analyticsUtils/index.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -447,15 +447,15 @@ describe('getAtUserId', () => {
447447
});
448448

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

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

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

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

0 commit comments

Comments
 (0)