'use strict' ; import assert from 'power-assert' ; import { prepareLuaTest } from '../LuaTestUtil' ; describe ( 'self-assign component' , ( ) => { let luaVmWrapper ; before ( async ( ) => { luaVmWrapper = await prepareLuaTest ( __dirname ) ; } ) ; afterEach ( ( ) => { luaVmWrapper . clean ( ) ; } ) ; describe ( 'exec self-assign command' , ( ) => { it ( 'exec self-assign command' , async ( ) => { const result = luaVmWrapper . publish ( 'CommandEvent' , { number : 42 , login : 'guest' , command : '/self-assign' , } ) ; assert . deepStrictEqual ( result , [ [ 'assign' , 42 , 'guest' ] , ] ) ; } ) ; } ) ; } ) ;