import fs from 'fs-promise'
import {join} from 'path'
import * as Validators from '../../src/services/validators'

describe('Standard plugins package.json format check', () => {
    const pluginsRoot = join(__dirname, '../../src/plugins/')

    it('audio-layer', async () => {
        Validators.delirPackageJson(require(join(pluginsRoot, 'audio-layer/package.json')))
    })

    it('composition-layer', async () => {
        Validators.delirPackageJson(require(join(pluginsRoot, 'composition-layer/package.json')))
    })

    it('html5-video-layer', async () => {
        Validators.delirPackageJson(require(join(pluginsRoot, 'html5-video-layer/package.json')))
    })

    it('plane', async () => {
        Validators.delirPackageJson(require(join(pluginsRoot, 'plane/package.json')))
    })

    it('test', async () => {
        Validators.delirPackageJson(require(join(pluginsRoot, 'text/package.json')))
    })
})

import fs from 'fs-promise'
import {join} from 'path'
import * as Validators from '../../src/services/validators'

describe('Standard plugins package.json format check', () => {
    const pluginsRoot = join(__dirname, '../../src/plugins/')

    it('audio-layer', async () => {
        Validators.delirPackageJson(require(join(pluginsRoot, 'audio-layer/package.json')))
    })

    it('composition-layer', async () => {
        Validators.delirPackageJson(require(join(pluginsRoot, 'composition-layer/package.json')))
    })

    it('video', async () => {
        Validators.delirPackageJson(require(join(pluginsRoot, 'video/package.json')))
    })

    it('plane', async () => {
        Validators.delirPackageJson(require(join(pluginsRoot, 'plane/package.json')))
    })

    it('test', async () => {
        Validators.delirPackageJson(require(join(pluginsRoot, 'text/package.json')))
    })
})

Fix test