Removed .only from admin controller test (#20399)

ref d732f83
- removed .only that wasn't caught by linter
This commit is contained in:
Steve Larson 2024-06-17 16:10:45 -05:00 committed by GitHub
parent d732f83a9f
commit b53dfbbfef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {