mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Removed .only from admin controller test (#20399)
ref d732f83
- removed .only that wasn't caught by linter
This commit is contained in:
parent
d732f83a9f
commit
b53dfbbfef
@ -10,21 +10,7 @@ import {task} from 'ember-concurrency';
|
|||||||
describe('Unit: Controller: lexical-editor', function () {
|
describe('Unit: Controller: lexical-editor', function () {
|
||||||
setupTest();
|
setupTest();
|
||||||
|
|
||||||
describe.only('generateSlug', function () {
|
describe('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();
|
|
||||||
// });
|
|
||||||
|
|
||||||
it('should generate a slug and set it on the post', async function () {
|
it('should generate a slug and set it on the post', async function () {
|
||||||
let controller = this.owner.lookup('controller:lexical-editor');
|
let controller = this.owner.lookup('controller:lexical-editor');
|
||||||
controller.set('slugGenerator', EmberObject.create({
|
controller.set('slugGenerator', EmberObject.create({
|
||||||
@ -98,7 +84,7 @@ describe('Unit: Controller: lexical-editor', function () {
|
|||||||
expect(controller.get('post.slug')).to.equal('newTitle-slug');
|
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');
|
let controller = this.owner.lookup('controller:lexical-editor');
|
||||||
controller.set('slugGenerator', EmberObject.create({
|
controller.set('slugGenerator', EmberObject.create({
|
||||||
generateSlug(slugType, str) {
|
generateSlug(slugType, str) {
|
||||||
|
Loading…
Reference in New Issue
Block a user