Sha256: e17763fd74ec05330c8acd0d6aec5ffaf169751ad3b8e190c845c33fc67e5b46
Contents?: true
Size: 710 Bytes
Versions: 10
Compression:
Stored size: 710 Bytes
Contents
import { testSelectorsSnapshotWithFixtures } from '@theforeman/test'; import { expandableContent } from './helpers'; const fixtures = { 'should return no errors': () => expandableContent({}), 'should return additional info': () => expandableContent({ additionalInfo: 'This is additional info' }), 'should return additional error': () => expandableContent({ additionalErrors: 'These are additional errors' }), 'should return attribute errors': () => expandableContent({ errors: { base: ['could not be processed'], name: ["can't be blank", 'has invalid format'], }, }), }; describe('expandableContent', () => testSelectorsSnapshotWithFixtures(fixtures));
Version data entries
10 entries across 10 versions & 1 rubygems