Got creature computation working again after moving to imports dir

This commit is contained in:
Stefan Zermatten
2018-10-12 11:59:29 +02:00
parent d117570165
commit 04059709eb
13 changed files with 168 additions and 186 deletions

View File

@@ -1,4 +1,4 @@
import {computeCharacter} from "./CharacterComputation.js";
import {computeCreature} from "./creatureComputation.js";
import assert from "assert";
const makeEffect = function(operation, value){
@@ -11,8 +11,8 @@ const makeEffect = function(operation, value){
return effect;
}
describe('computeCharacter', function () {
it('computes an aritrary character', function () {
describe('computeCreature', function () {
it('computes an aritrary creature', function () {
let char = {
atts: {
attribute1: {
@@ -90,7 +90,7 @@ describe('computeCharacter', function () {
},
level: 5,
};
char = computeCharacter(char);
char = computeCreature(char);
console.log(char);
assert(true);
});