SimonTestNet / SimonTest

Repository for SimonTest questions and issues https://simontest.net
16 stars 2 forks source link

(intermediate value)(intermediate value).addScope is not a function when attempting to generate test file #37

Closed sbalint-Atlas closed 4 years ago

sbalint-Atlas commented 4 years ago

This appears to only be happening when using dependencies.

constructor(public test: TestService) {}

tester() {
    const test1 = this.test.activeScheduleRange.start; // Working
    const test2 = this.test.activeScheduleRange.start.toString(); // Not Working

    const data = this.test.activeScheduleRange.start;
    const test3 = data.toString(); // Working
  }
import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class TestService {

  public activeScheduleRange = {
    start: new Date(2020, 3, 1),
    end: new Date(2020, 3, 2),
    days: 1
  };

  constructor() { }
}
ManuelDeLeon commented 4 years ago

Fixed on 1.8.8. Also fixed a few related issues.

Thanks for the notice.