Skip to content

Commit

Permalink
Update test comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wbyoko committed Mar 12, 2019
1 parent 18488bd commit 48c0598
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web-client/src/ustc-ui/utils/ElementChildren.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import { forEach, getDefaultAttribute, map } from './ElementChildren';

describe('map', () => {
it('should map items and skip non elements', () => {
it('should map items and not alter non elements', () => {
const children = [
<div key="what">sds</div>,
22,
Expand All @@ -17,7 +17,7 @@ describe('map', () => {
).toEqual([0, 22, 1]);
});

it('should map items and exclude null', () => {
it('should map items and exclude null values from results', () => {
const children = [
<div key="what">sds</div>,
<div key="whatever">something</div>,
Expand All @@ -36,7 +36,7 @@ describe('map', () => {
});

describe('forEach', () => {
it('should map items and exclude null', () => {
it('should loop over items and skip non-react items', () => {
const children = [
<div key="what">sds</div>,
22,
Expand All @@ -54,7 +54,7 @@ describe('forEach', () => {
});

describe('getDefaultAttribute', () => {
it('should find first attribute and return', () => {
it('should find the first attribute and return that attribute', () => {
const children = [
<div key="what" kid="someIds">
sds
Expand Down

0 comments on commit 48c0598

Please sign in to comment.