没有名称为nb-install的mixin

时间:2019-04-12 07:39:51

标签: css angular scss-mixins nebular

我正在使用angular5,在执行npm start或serve时出现“ No mixin named nb-install”错误。

describe("Patient duplicate check", function () {
    it("should call patientService.searchDuplicatePatients when givenName, gender and birthDate are populated", function() {
        scope.patient.systemIdentier = 'BAH203007';
        scope.patient.givenName = 'Dhruv';
        scope.patient.familyName = 'Bhardwaj';
        scope.patient.gender = 'M';
        scope.patient.birthDate = '1993-12-18T00:00:00.000Z';
        scope.patient.PERSON_ATTRIBUTE_TYPE_PHONE_NUMBER = '987654321';
        scope.patient.address = 'BAYA HADJIDA';
        scope.checkDuplicatePatients = jasmine.createSpy("checkDuplicatePatients");
        scope.checkDuplicatePatients();
        expect(scope.checkDuplicatePatients).toHaveBeenCalled();
        expect(patientService.searchDuplicatePatients).toHaveBeenCalledWith('BAH203006', 'Kartik', 'Seth', '1993-03-18T00:00:00.000Z', 'M', '123456789', 'NGAOUNDAL');
    });

    it("should not call patientService.searchDuplicatePatients when givenName, gender or birthDate is not populated", function() {
        scope.patient.givenName = 'Dhruv';
        scope.checkDuplicatePatients = jasmine.createSpy("checkDuplicatePatients");
        scope.checkDuplicatePatients();
        expect(scope.checkDuplicatePatients).toHaveBeenCalled();
        expect(patientService.searchDuplicatePatients).not.toHaveBeenCalled(); /*Here is I want to unit test*/
   });
}) What is wrong here in the unit test

以下是我正在执行的名为“ styles.scss”的文件

Module build failed:
undefined
        ^
      No mixin named nb-install

Backtrace:
        stdin:13
      in E:\mrb_bugfixes\bottledepot\src\app\@theme\styles\styles.scss (line 13, column 10)

1 个答案:

答案 0 :(得分:0)

花了很长时间后。我发现要安装此依赖项.....

npm install --save @nebular/theme @angular/cdk @angular/animations