pritishvaidya/react-native-tag-names

View on GitHub
test.js

Summary

Maintainability
A
0 mins
Test Coverage
import test from 'ava';
import voidReactNativeTags from './void';
import reactNativeTags from '.';

test('`react-native-tags` is an array of React Native string tags', t => {
    t.true(Array.isArray(reactNativeTags));
    t.true(reactNativeTags.length > 10 && reactNativeTags.length < 1000);

    reactNativeTags.forEach(tagName => {
        t.true(typeof tagName === 'string');
    });
});

test('`react-native-tags/void` is an array of void React Native Void string tags', t => {
    t.true(Array.isArray(voidReactNativeTags));
    t.true(voidReactNativeTags.length > 10 && voidReactNativeTags.length < 1000);

    voidReactNativeTags.forEach(tagName => {
        t.true(typeof tagName === 'string');
    });
});