Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purchases: Add unit tests to single test runner #3884

Merged
merged 1 commit into from
Mar 9, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions client/lib/purchases/Makefile

This file was deleted.

12 changes: 0 additions & 12 deletions client/lib/purchases/stored-cards/Makefile

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { expect } from 'chai';
import { createStoredCardsArray } from '../assembler.js';
import { STORED_CARDS_FROM_API, STORED_CARDS } from './data';

describe( 'Stored Cards assembler', () => {
describe( 'assembler', () => {
it( 'should be a function', () => {
expect( createStoredCardsArray ).to.be.an( 'function' );
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Dispatcher from 'dispatcher';
import { STORED_CARDS_FROM_API, STORED_CARDS } from './data';
import StoredCardsStore from './../store';

describe( 'Stored Cards Store', () => {
describe( 'store', () => {
it( 'should be an object', () => {
expect( StoredCardsStore ).to.be.an( 'object' );
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import moment from 'moment';
*/
import { createPurchasesArray } from '../assembler';

describe( 'Purchases assembler', () => {
describe( 'assembler', () => {
it( 'should be a function', () => {
expect( createPurchasesArray ).to.be.an( 'function' );
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import {
DOMAIN_MAPPING_PURCHASE_EXPIRED,
SITE_REDIRECT_PURCHASE,
SITE_REDIRECT_PURCHASE_EXPIRED
} from 'data';
} from './data';
import { isRemovable } from '../index';

describe( 'Purchases Utils', () => {
describe( 'isRemovable', () => {
describe( 'index', () => {
describe( '#isRemovable', () => {
it( 'should not be removable when domain registration purchase is not expired', () => {
expect( isRemovable( DOMAIN_PURCHASE ) ).to.be.false;
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import defer from 'lodash/defer';
import { action as actionTypes } from 'lib/upgrades/constants';
import PurchasesStore from '../store';

describe( 'Purchases Store', () => {
describe( 'store', () => {
const userId = 1337,
siteId = 2701;

Expand Down
6 changes: 6 additions & 0 deletions client/test/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
"posts": {
"test": [ "actions", "post-edit-store", "post-list-store", "utils" ]
},
"purchases": {
"stored-cards": {
"test": [ "assembler", "store" ]
},
"test": [ "assembler", "index", "store" ]
},
"store": {
"test": [ "index-test" ]
}
Expand Down