HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode/one-time-popup/node_modules/sass-embedded/dist/test/utils.js
"use strict";
// Copyright 2020 Google Inc. Use of this source code is governed by an
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.expectObservableToError = expectObservableToError;
exports.expectEqualPaths = expectEqualPaths;
exports.expectEqualIgnoringWhitespace = expectEqualIgnoringWhitespace;
exports.expectEqualWithHashCode = expectEqualWithHashCode;
/**
 * Subscribes to `observable` and asserts that it errors with the expected
 * `errorMessage`. Calls `done()` to complete the spec.
 */
function expectObservableToError(observable, errorMessage, done) {
    observable.subscribe({
        next: () => {
            throw new Error('expected error');
        },
        error: error => {
            expect(error.message).toBe(errorMessage);
            done();
        },
        complete: () => {
            throw new Error('expected error');
        },
    });
}
/**
 * Asserts that the `actual` path is equal to the `expected` one, accounting for
 * OS differences.
 */
function expectEqualPaths(actual, expected) {
    if (process.platform === 'win32') {
        expect(actual.toLowerCase()).toBe(expected.toLowerCase());
    }
    else {
        expect(actual).toBe(expected);
    }
}
/**
 * Asserts that `string1` is equal to `string2`, ignoring all whitespace in
 * either string.
 */
function expectEqualIgnoringWhitespace(string1, string2) {
    function strip(str) {
        return str.replace(/\s+/g, '');
    }
    expect(strip(string1)).toBe(strip(string2));
}
/**
 * Asserts that `val1` and `val2` are equal and have the same hashcode.
 */
function expectEqualWithHashCode(val1, val2) {
    expect(val1.equals(val2)).toBe(true);
    expect(val1.hashCode()).toBe(val2.hashCode());
}
//# sourceMappingURL=utils.js.map