From b53dfbbfefb162c80b8670b77da781f881d8d441 Mon Sep 17 00:00:00 2001 From: Steve Larson <9larsons@gmail.com> Date: Mon, 17 Jun 2024 16:10:45 -0500 Subject: [PATCH] Removed .only from admin controller test (#20399) ref d732f83 - removed .only that wasn't caught by linter --- .../tests/unit/controllers/editor-test.js | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/ghost/admin/tests/unit/controllers/editor-test.js b/ghost/admin/tests/unit/controllers/editor-test.js index 09cfd38df6..088f22391d 100644 --- a/ghost/admin/tests/unit/controllers/editor-test.js +++ b/ghost/admin/tests/unit/controllers/editor-test.js @@ -10,21 +10,7 @@ import {task} from 'ember-concurrency'; describe('Unit: Controller: lexical-editor', function () { setupTest(); - describe.only('generateSlug', function () { - // beforeEach(function () { - // this.controller = this.owner.lookup('controller:lexical-editor'); - // this.controller.set('slugGenerator', EmberObject.create({ - // generateSlug(slugType, str) { - // console.log('--stubbed generateSlug', slugType, str); - // return RSVP.resolve(`${str}-slug`); - // } - // })); - // }); - - // afterEach(async function () { - // await this.controller.reset(); - // }); - + describe('generateSlug', function () { it('should generate a slug and set it on the post', async function () { let controller = this.owner.lookup('controller:lexical-editor'); controller.set('slugGenerator', EmberObject.create({ @@ -98,7 +84,7 @@ describe('Unit: Controller: lexical-editor', function () { expect(controller.get('post.slug')).to.equal('newTitle-slug'); }); - it.only('should not generate a new slug if it appears a custom slug was set', async function () { + it('should not generate a new slug if it appears a custom slug was set', async function () { let controller = this.owner.lookup('controller:lexical-editor'); controller.set('slugGenerator', EmberObject.create({ generateSlug(slugType, str) {