var validate = require('../src/validator').purchasing;

it("#01. Purchase Order External should valid", function() {
    var PurchaseOrderExternal = require('../src/purchasing/purchase-order-external');
    validate.purchaseOrderExternal(new PurchaseOrderExternal());
});

it("#02. Purchase Order should valid", function () {
    var PurchaseOrder = require('../src/purchasing/purchase-order');
    validate.purchaseOrder(new PurchaseOrder());
});

it("#03. Delivery Order should valid", function () {
    var DeliveryOrder = require('../src/purchasing/delivery-order');
    validate.deliveryOrder(new DeliveryOrder());
});

it("#04. Unit Receipt Note should valid", function () {
    var UnitReceiptNote = require('../src/purchasing/unit-receipt-note');
    validate.unitReceiptNote(new UnitReceiptNote());
}); 
 
it("#05. Unit Payment Correction Note should valid", function () {
    var unitPaymentCorrectionNote = require('../src/purchasing/unit-payment-correction-note');
    validate.unitPaymentCorrectionNote(new unitPaymentCorrectionNote());
});

it("#06. Unit Payment Order should valid", function () {
    var UnitPaymentOrder = require('../src/purchasing/unit-payment-order');
    validate.UnitPaymentOrder(new UnitPaymentOrder());
});

@@ -71,22 +71,198 @@
 ase 
-Order External
+Request should valid%22, function() %7B%0A    var PurchaseRequest = require('../src/purchasing/purchase-request');%0A    validate.purchaseRequest(new PurchaseRequest());%0A%7D);%0A%0Ait(%22#02. Purchase Order
  sho
@@ -273,32 +273,33 @@
 valid%22, function
+ 
 () %7B%0A    var Pur
@@ -308,24 +308,16 @@
 aseOrder
-External
  = requi
@@ -356,17 +356,8 @@
 rder
--external
 ');%0A
@@ -382,24 +382,16 @@
 aseOrder
-External
 (new Pur
@@ -404,16 +404,8 @@
 rder
-External
 ());
@@ -408,33 +408,33 @@
 ());%0A%7D);%0A%0Ait(%22#0
-2
+3
 . Purchase Order
@@ -426,32 +426,41 @@
  Purchase Order 
+External 
 should valid%22, f
@@ -458,33 +458,32 @@
 valid%22, function
- 
 () %7B%0A    var Pur
@@ -484,32 +484,40 @@
 ar PurchaseOrder
+External
  = require('../s
@@ -536,32 +536,41 @@
 g/purchase-order
+-external
 ');%0A    validate
@@ -575,32 +575,40 @@
 te.purchaseOrder
+External
 (new PurchaseOrd
@@ -601,32 +601,40 @@
 ew PurchaseOrder
+External
 ());%0A%7D);%0A%0Ait(%22#0
@@ -633,17 +633,17 @@
 %0A%0Ait(%22#0
-3
+4
 . Delive
@@ -809,17 +809,17 @@
 %0A%0Ait(%22#0
-4
+5
 . Unit R
@@ -995,25 +995,25 @@
 ); %0A %0Ait(%22#0
-5
+6
 . Unit Payme
@@ -1235,25 +1235,25 @@
 %0A%7D);%0A%0Ait(%22#0
-6
+7
 . Unit Payme

add test PR