// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import '../content/textElement'
import '../content/imageElement'
import '../content/dividerElement'
import '../content/checkboxElement'

import {contentBlockTypes} from '../../blocks/block'

import {contentRegistry} from './contentRegistry'

describe('components/content/ContentRegistry', () => {
    test('have all contentTypes', () => {
        expect(contentRegistry.contentTypes).toEqual(contentBlockTypes)
    })
    test.each(contentBlockTypes)('have a contentType %s', (content) => {
        expect(contentRegistry.isContentType(content)).toBeTruthy()
    })
    test.each(contentBlockTypes)('get a contentHandler for %s', (content) => {
        expect(contentRegistry.getHandler(content)).toBeTruthy()
    })
})
