You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

9 line
227 B

  1. import test from 'ava';
  2. import { mutations } from '../src/store/mutations';
  3. test('LOGOUT', t => {
  4. const {LOGOUT} = mutations;
  5. const state = {authenticated:true};
  6. LOGOUT(state);
  7. t.false(state.authenticated);
  8. });