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.

12 lines
284 B

3 years ago
import Resource from '../../src/resource'
import { User } from '../utils/models'
describe('Resource #position', () => {
it('returns position of a parent field', () => {
const property = new Resource(User).property('parent')
expect(property.position()).toEqual(4)
})
})