Skip to content

Instantly share code, notes, and snippets.

View malitta's full-sized avatar

Malitta Nanayakkara malitta

View GitHub Profile
@trq
trq / TestCase.php
Last active December 1, 2016 12:07
<?php
// ...
/**
* Does the response contain all required attributes of a JSONApi Response Resource.
*
* @param array|null $resource
*/
protected function assertJsonAPIIsValidResource(?array $resource = null)
@PMK
PMK / TestComponent.test.js
Created May 23, 2018 07:13
Mocha-webpack with Vue
import { mount } from '@vue/test-utils'
import { assert } from 'chai'
import Component from '../../../../src/components/TestComponent.vue'
describe('TestComponent.vue', () => {
it('renders', () => {
const wrapper = mount(Component)
assert.isTrue(
wrapper.is(true)